Files
Semyon Proshev c536e920b6 Support abc.abstractstaticmethod and abc.abstractclassmethod (PY-14896)
Modifier inference for functions decorated with these decorators was fixed.
Usages of these decorators are highlighted as deprecated.
2018-02-09 17:22:50 +03:00

12 lines
141 B
Python

import abc
class A:
@abc.abstractclassmethod
def foo(cls):
pass
@abc.abstractstaticmethod
def bar():
pass