Skip to content

Commit

Permalink
Fix useless-suppression Pylint warning (#2548)
Browse files Browse the repository at this point in the history
* Bump Pylint requirement to 3.2.7
  • Loading branch information
correctmost committed Sep 8, 2024
1 parent cae2977 commit 8573b68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions astroid/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,7 @@ def delayed_assattr(self, node: nodes.AssignAttr) -> None:
if isinstance(inferred, util.UninferableBase):
continue
try:
# pylint: disable=unidiomatic-typecheck # We want a narrow check on the
# parent type, not all of its subclasses
# We want a narrow check on the parent type, not all of its subclasses
if type(inferred) in {bases.Instance, objects.ExceptionInstance}:
inferred = inferred._proxied
iattrs = inferred.instance_attrs
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# Tools used during development, prefer running these with pre-commit
black
pre-commit
pylint>=3.2.0
pylint>=3.2.7
mypy
ruff

0 comments on commit 8573b68

Please sign in to comment.