diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-17 22:54:16 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-17 23:09:55 +0200 |
commit | e3acc91e29f18fa0626e3337edf7fe382f534849 (patch) | |
tree | c22bfd537c34a32feaf09dbb4afc76ace49348bf /astroid/scoped_nodes.py | |
parent | f6d084c43f3affef6335a2033df4fc0923e6bd23 (diff) | |
download | astroid-git-e3acc91e29f18fa0626e3337edf7fe382f534849.tar.gz |
Remove PY36 constants, we always have PY36
Diffstat (limited to 'astroid/scoped_nodes.py')
-rw-r--r-- | astroid/scoped_nodes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/scoped_nodes.py b/astroid/scoped_nodes.py index c3603c63..334af2d9 100644 --- a/astroid/scoped_nodes.py +++ b/astroid/scoped_nodes.py @@ -47,7 +47,7 @@ from astroid import bases from astroid import context as contextmod from astroid import decorators as decorators_mod from astroid import manager, mixins, node_classes, util -from astroid.constants import PY36, PY39 +from astroid.constants import PY39 from astroid.exceptions import ( AstroidBuildingError, AstroidTypeError, @@ -1514,7 +1514,7 @@ class FunctionDef(mixins.MultiLineBlockMixin, node_classes.Statement, Lambda): if isinstance(frame, ClassDef): if self.name == "__new__": return "classmethod" - if PY36 and self.name == "__init_subclass__": + if self.name == "__init_subclass__": return "classmethod" type_name = "method" |