It's possible to mark deprecated classes in Python/PyCharm like this:
class Foo:
    def __init__(self):
        warnings.warn('Use Bar instead.', DeprecationWarning)
Any code trying to instantiate Foo now will be appropriately marked by PyCharm as Foo()
However, just inheriting the class won't:
class Baz(Foo):
    pass
Is there any way to have the declaration of Baz marked with a deprecation warning in any way?
 
    