mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Consider class inheriting abc.ABC as abstract (PY-30789)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
import abc
|
||||
|
||||
class A1(abc.ABC):
|
||||
@abc.abstractmethod
|
||||
def m1(self):
|
||||
pass
|
||||
|
||||
class A2(A1, abc.ABC):
|
||||
pass
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
class ABCMeta:
|
||||
pass
|
||||
|
||||
|
||||
class ABC(metaclass=ABCMeta):
|
||||
"""Helper class that provides a standard way to create an ABC using
|
||||
inheritance.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
def abstractmethod(foo):
|
||||
pass
|
||||
Reference in New Issue
Block a user