Files
openide/python/testData/inspections/PyAbstractClassInspection/hiddenForAbstractSubclassWithAbstractMethod.py
Petr 8fdd497e22 PY-12132 Support ABC classes (pep-3119)
Convert test files used with the default language level to Python 3 (PyAbstractInspectionTest)

(cherry picked from commit debae3365955d6237c423197ec25a638dbd95dfb)

GitOrigin-RevId: 66f17df6866682c5e18a6f43a861e628ddb0ba30
2025-04-23 23:27:31 +00:00

13 lines
171 B
Python

import abc
class A1(metaclass=abc.ABCMeta):
@abc.abstractmethod
def m1(self):
pass
class A2(A1):
@abc.abstractmethod
def m2(self):
pass