PY-49650 Update module_redeclarator.py

closes https://github.com/JetBrains/intellij-community/pull/1626

GitOrigin-RevId: 26ee935f9fee69b20d2f5a9fea48ed625258ae84
This commit is contained in:
HunterTracer
2021-07-08 22:58:46 +08:00
committed by intellij-monorepo-bot
parent c939633bbc
commit d358ceb18a

View File

@@ -529,6 +529,8 @@ class ModuleRedeclarator(object):
if p_name != "__new__" and type(descriptor).__name__.startswith('classmethod'):
# 'classmethod_descriptor' in Python 2.x and 3.x, 'classmethod' in Jython
deco = "classmethod"
elif p_name != "__new__" and type(descriptor).__name__.startswith('staticmethod'):
deco = "staticmethod"
elif type(p_func).__name__.startswith('staticmethod'):
deco = "staticmethod"
if p_name == "__new__":