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

26 lines
458 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
def inheritedstaticmeth(cls):
"""Inherited static method."""
class Derived(Base):
def inheritedmeth(self):
# no docstring here
pass
class MyList(list):
def meth(self):
"""docstring"""