mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
44 lines
1.4 KiB
Python
44 lines
1.4 KiB
Python
import abc
|
|
|
|
|
|
class A(metaclass=abc.ABCMeta):
|
|
<warning descr="'abc.abstractproperty' is deprecated since Python 3.3. Use 'property' with 'abc.abstractmethod' instead">@abc.abstractproperty</warning>
|
|
def prop(self):
|
|
pass
|
|
|
|
|
|
from abc import abstractproperty
|
|
|
|
|
|
class B(metaclass=abc.ABCMeta):
|
|
<warning descr="'abc.abstractproperty' is deprecated since Python 3.3. Use 'property' with 'abc.abstractmethod' instead">@abstractproperty</warning>
|
|
def prop(self):
|
|
pass
|
|
|
|
|
|
from abc import abstractproperty as ap
|
|
|
|
|
|
class C(metaclass=abc.ABCMeta):
|
|
<warning descr="'abc.abstractproperty' is deprecated since Python 3.3. Use 'property' with 'abc.abstractmethod' instead">@ap</warning>
|
|
def prop(self):
|
|
pass
|
|
|
|
|
|
import abc as foo
|
|
|
|
|
|
class D(metaclass=abc.ABCMeta):
|
|
<warning descr="'abc.abstractproperty' is deprecated since Python 3.3. Use 'property' with 'abc.abstractmethod' instead">@foo.abstractproperty</warning>
|
|
def prop(self):
|
|
pass
|
|
|
|
|
|
class A:
|
|
<warning descr="'abc.abstractclassmethod' is deprecated since Python 3.3. Use 'classmethod' with 'abc.abstractmethod' instead">@abc.abstractclassmethod</warning>
|
|
def foo(cls):
|
|
pass
|
|
|
|
<warning descr="'abc.abstractstaticmethod' is deprecated since Python 3.3. Use 'staticmethod' with 'abc.abstractmethod' instead">@abc.abstractstaticmethod</warning>
|
|
def bar():
|
|
pass |