mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix PyDeprecationTest - some deprecation notices have been updated in typeshed
GitOrigin-RevId: e85be16ca334471facc902fa760255595c0ff042
This commit is contained in:
committed by
intellij-monorepo-bot
parent
100ac7c2df
commit
c1161df810
@@ -2,25 +2,25 @@ import abc
|
||||
|
||||
|
||||
class A(metaclass=abc.ABCMeta):
|
||||
@abc.<warning descr="Use 'property' with 'abstractmethod' instead">abstractproperty</warning>
|
||||
@abc.<warning descr="Deprecated since Python 3.3. Use `@property` stacked on top of `@abstractmethod` instead.">abstractproperty</warning>
|
||||
def prop(self):
|
||||
pass
|
||||
|
||||
|
||||
from abc import <warning descr="Use 'property' with 'abstractmethod' instead">abstractproperty</warning>
|
||||
from abc import <warning descr="Deprecated since Python 3.3. Use `@property` stacked on top of `@abstractmethod` instead.">abstractproperty</warning>
|
||||
|
||||
|
||||
class B(metaclass=abc.ABCMeta):
|
||||
@<warning descr="Use 'property' with 'abstractmethod' instead">abstractproperty</warning>
|
||||
@<warning descr="Deprecated since Python 3.3. Use `@property` stacked on top of `@abstractmethod` instead.">abstractproperty</warning>
|
||||
def prop(self):
|
||||
pass
|
||||
|
||||
|
||||
from abc import <warning descr="Use 'property' with 'abstractmethod' instead">abstractproperty</warning> as ap
|
||||
from abc import <warning descr="Deprecated since Python 3.3. Use `@property` stacked on top of `@abstractmethod` instead.">abstractproperty</warning> as ap
|
||||
|
||||
|
||||
class C(metaclass=abc.ABCMeta):
|
||||
@<warning descr="Use 'property' with 'abstractmethod' instead">ap</warning>
|
||||
@<warning descr="Deprecated since Python 3.3. Use `@property` stacked on top of `@abstractmethod` instead.">ap</warning>
|
||||
def prop(self):
|
||||
pass
|
||||
|
||||
@@ -29,16 +29,16 @@ import abc as foo
|
||||
|
||||
|
||||
class D(metaclass=abc.ABCMeta):
|
||||
@foo.<warning descr="Use 'property' with 'abstractmethod' instead">abstractproperty</warning>
|
||||
@foo.<warning descr="Deprecated since Python 3.3. Use `@property` stacked on top of `@abstractmethod` instead.">abstractproperty</warning>
|
||||
def prop(self):
|
||||
pass
|
||||
|
||||
|
||||
class A:
|
||||
@abc.<warning descr="Use 'classmethod' with 'abstractmethod' instead">abstractclassmethod</warning>
|
||||
@abc.<warning descr="Deprecated since Python 3.3. Use `@classmethod` stacked on top of `@abstractmethod` instead.">abstractclassmethod</warning>
|
||||
def foo(cls):
|
||||
pass
|
||||
|
||||
@abc.<warning descr="Use 'staticmethod' with 'abstractmethod' instead">abstractstaticmethod</warning>
|
||||
@abc.<warning descr="Deprecated since Python 3.3. Use `@staticmethod` stacked on top of `@abstractmethod` instead.">abstractstaticmethod</warning>
|
||||
def bar():
|
||||
pass
|
||||
Reference in New Issue
Block a user