sphinx/tests/roots/test-ext-autodoc/target/inheritance.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
492 B
Python
Raw Normal View History

2022-10-17 09:54:59 -05:00
class Base:
#: docstring
inheritedattr = None
def inheritedmeth(self):
"""Inherited function."""
@classmethod
def inheritedclassmeth(cls):
"""Inherited class method."""
@staticmethod
2025-01-02 19:09:26 -06:00
def inheritedstaticmeth(cls): # NoQA: PLW0211
"""Inherited static method."""
class Derived(Base):
def inheritedmeth(self):
# no docstring here
pass
2025-01-02 19:09:26 -06:00
class MyList(list): # NoQA: FURB189
def meth(self):
"""docstring"""