Skip to content

Commit 8573b68

Browse files
authored
Fix useless-suppression Pylint warning (#2548)
* Bump Pylint requirement to 3.2.7
1 parent cae2977 commit 8573b68

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

astroid/builder.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,7 @@ def delayed_assattr(self, node: nodes.AssignAttr) -> None:
244244
if isinstance(inferred, util.UninferableBase):
245245
continue
246246
try:
247-
# pylint: disable=unidiomatic-typecheck # We want a narrow check on the
248-
# parent type, not all of its subclasses
247+
# We want a narrow check on the parent type, not all of its subclasses
249248
if type(inferred) in {bases.Instance, objects.ExceptionInstance}:
250249
inferred = inferred._proxied
251250
iattrs = inferred.instance_attrs

requirements_dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
# Tools used during development, prefer running these with pre-commit
44
black
55
pre-commit
6-
pylint>=3.2.0
6+
pylint>=3.2.7
77
mypy
88
ruff

0 commit comments

Comments
 (0)