Python 関数、または非推奨とされているメソッドの使用箇所を報告し、DeprecationWarning または PendingDeprecationWarning の警告を発生させます。
また、このインスペクションは abc.abstractstaticmethod、abc.abstractproperty、および abc.abstractclassmethod デコレーターの使用箇所をハイライトします。
例:
class Foo:
@property
def bar(self):
import warnings
warnings.warn("this is deprecated", DeprecationWarning, 2)
return 5
foo = Foo()
print(foo.bar)