diff options
author | Jacob Walls <jacobtylerwalls@gmail.com> | 2023-05-12 08:10:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 14:10:44 +0200 |
commit | e1b577ab43a45e7ca0398cd73833a00539d74f18 (patch) | |
tree | 16081152dce41ef8b2acfe7f932be6730234197d | |
parent | 2cd9e90e80a1eb3318e4351ea3b8b3e8c83c235b (diff) | |
download | astroid-git-e1b577ab43a45e7ca0398cd73833a00539d74f18.tar.gz |
Remove pylint disables and resolves TODO in pylintrc (#2175)
-rw-r--r-- | astroid/decorators.py | 1 | ||||
-rw-r--r-- | astroid/manager.py | 1 | ||||
-rw-r--r-- | astroid/nodes/scoped_nodes/scoped_nodes.py | 1 | ||||
-rw-r--r-- | pylintrc | 3 | ||||
-rw-r--r-- | tests/brain/test_typing_extensions.py | 2 | ||||
-rw-r--r-- | tests/test_modutils.py | 2 |
6 files changed, 3 insertions, 7 deletions
diff --git a/astroid/decorators.py b/astroid/decorators.py index 180e08c4..8baca60b 100644 --- a/astroid/decorators.py +++ b/astroid/decorators.py @@ -91,7 +91,6 @@ def raise_if_nothing_inferred( except StopIteration as error: # generator is empty if error.args: - # pylint: disable=not-a-mapping raise InferenceError(**error.args[0]) from error raise InferenceError( "StopIteration raised without any error information." diff --git a/astroid/manager.py b/astroid/manager.py index 7f62fd42..7b026303 100644 --- a/astroid/manager.py +++ b/astroid/manager.py @@ -262,7 +262,6 @@ class AstroidManager: except ValueError: continue try: - # pylint: disable-next=no-member importer = zipimport.zipimporter(eggpath + ext) zmodname = resource.replace(os.path.sep, ".") if importer.is_package(resource): diff --git a/astroid/nodes/scoped_nodes/scoped_nodes.py b/astroid/nodes/scoped_nodes/scoped_nodes.py index c5d328f6..cceac36d 100644 --- a/astroid/nodes/scoped_nodes/scoped_nodes.py +++ b/astroid/nodes/scoped_nodes/scoped_nodes.py @@ -1751,7 +1751,6 @@ def get_wrapping_class(node): return klass -# pylint: disable=too-many-instance-attributes class ClassDef( _base_nodes.FilterStmtsBaseNode, LocalsDictNodeNG, _base_nodes.Statement ): @@ -259,8 +259,7 @@ mixin-class-rgx=.*Mix[Ii]n # List of members which are set dynamically and missed by pylint inference # system, and so shouldn't trigger E0201 when accessed. Python regular # expressions are accepted. -# TODO: Remove ast.Match pattern once https://github.com/pylint-dev/pylint/issues/6594 is fixed -generated-members=REQUEST,acl_users,aq_parent,argparse.Namespace,ast\.([mM]atch.*|pattern) +generated-members=REQUEST,acl_users,aq_parent,argparse.Namespace [VARIABLES] diff --git a/tests/brain/test_typing_extensions.py b/tests/brain/test_typing_extensions.py index e4ee4f31..883428b7 100644 --- a/tests/brain/test_typing_extensions.py +++ b/tests/brain/test_typing_extensions.py @@ -9,7 +9,7 @@ import pytest from astroid import builder, nodes try: - import typing_extensions # pylint: disable=unused-import + import typing_extensions HAS_TYPING_EXTENSIONS = True HAS_TYPING_EXTENSIONS_TYPEVAR = hasattr(typing_extensions, "TypeVar") diff --git a/tests/test_modutils.py b/tests/test_modutils.py index 9dcdc811..34f7132f 100644 --- a/tests/test_modutils.py +++ b/tests/test_modutils.py @@ -26,7 +26,7 @@ from astroid.interpreter._import import spec from . import resources try: - import urllib3 # type: ignore[import] # pylint: disable=unused-import + import urllib3 # type: ignore[import] HAS_URLLIB3_V1 = urllib3.__version__.startswith("1") except ImportError: |