From 33ca0a5d87ec90dda8d4945aedb803e6fd7f4946 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Sat, 7 Sep 2024 12:32:38 -0400 Subject: [PATCH 1/2] Fix useless-suppression Pylint warning --- astroid/builder.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/astroid/builder.py b/astroid/builder.py index 932b461fa5..fe047f7553 100644 --- a/astroid/builder.py +++ b/astroid/builder.py @@ -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 From 1974a4d2bd7a0952bb5d5d252d8553949a534390 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Sun, 8 Sep 2024 01:57:54 -0400 Subject: [PATCH 2/2] Bump Pylint requirement to 3.2.7 --- requirements_dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_dev.txt b/requirements_dev.txt index 4949455f52..c693a035b0 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -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