Inspectopedia Help

Deprecated function, class, or module

Reports usages of Python functions, or methods that are marked as deprecated and raise the DeprecationWarning or PendingDeprecationWarning warning.

Also, this inspection highlights usages of abc.abstractstaticmethod, abc.abstractproperty, and abc.abstractclassmethod decorators.


class Foo: @property def bar(self): import warnings warnings.warn("this is deprecated", DeprecationWarning, 2) return 5 foo = Foo() print(

Inspection Details

Available in:

DataSpell 2023.3, PyCharm 2023.3


Python Community Edition, 233.SNAPSHOT

Last modified: 13 July 2023