summaryrefslogtreecommitdiff
path: root/astroid/scoped_nodes.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-06-17 22:54:16 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-06-17 23:09:55 +0200
commite3acc91e29f18fa0626e3337edf7fe382f534849 (patch)
treec22bfd537c34a32feaf09dbb4afc76ace49348bf /astroid/scoped_nodes.py
parentf6d084c43f3affef6335a2033df4fc0923e6bd23 (diff)
downloadastroid-git-e3acc91e29f18fa0626e3337edf7fe382f534849.tar.gz
Remove PY36 constants, we always have PY36
Diffstat (limited to 'astroid/scoped_nodes.py')
-rw-r--r--astroid/scoped_nodes.py4
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"