mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
PY-49650 Update module_redeclarator.py
closes https://github.com/JetBrains/intellij-community/pull/1626 GitOrigin-RevId: 26ee935f9fee69b20d2f5a9fea48ed625258ae84
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c939633bbc
commit
d358ceb18a
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user