sphinx/tests/roots/test-ext-autodoc/target/inheritance.py
2022-10-17 22:39:09 +01:00

26 lines
458 B
Python

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"""