Skip to content

Commit

Permalink
Moving the unsupported-assignment-operation lint rule (#12304)
Browse files Browse the repository at this point in the history
* Moving the unsupported-assignment-operation lint rule

* moving lint exclusion to inline comment
  • Loading branch information
joesho112358 committed May 10, 2024
1 parent 235e581 commit 5fd7d01
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ disable = [
"unnecessary-dunder-call",
"unnecessary-lambda-assignment",
"unspecified-encoding",
"unsupported-assignment-operation",
]

enable = [
Expand Down
2 changes: 1 addition & 1 deletion qiskit/providers/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def set_validator(self, field, validator_value):
f"{type(validator_value)} is not a valid validator type, it "
"must be a tuple, list, or class/type"
)
self.validator[field] = validator_value
self.validator[field] = validator_value # pylint: disable=unsupported-assignment-operation

def update_options(self, **fields):
"""Update options with kwargs"""
Expand Down

0 comments on commit 5fd7d01

Please sign in to comment.