mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-12132 Support ABC classes (pep-3119)
Convert test files used with the default language level to Python 3 (PyAbstractInspectionTest) GitOrigin-RevId: debae3365955d6237c423197ec25a638dbd95dfb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0c84ce591d
commit
f560f56c33
@@ -1,9 +1,7 @@
|
||||
import abc
|
||||
|
||||
|
||||
class A(object):
|
||||
__metaclass__ = abc.ABCMeta
|
||||
|
||||
class A(metaclass=abc.ABCMeta):
|
||||
@abc.abstractproperty
|
||||
def foo(self):
|
||||
pass
|
||||
|
||||
+1
-3
@@ -1,9 +1,7 @@
|
||||
import abc
|
||||
|
||||
|
||||
class A1(object):
|
||||
__metaclass__ = abc.ABCMeta
|
||||
|
||||
class A1(metaclass=abc.ABCMeta):
|
||||
@abc.abstractmethod
|
||||
def m1(self):
|
||||
pass
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import abc
|
||||
|
||||
|
||||
class A(object):
|
||||
__metaclass__ = abc.ABCMeta
|
||||
|
||||
class A(metaclass=abc.ABCMeta):
|
||||
@abc.abstractproperty
|
||||
def foo(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user