sphinx/tests/roots/test-ext-autodoc/target/inheritance.py
2025-01-03 01:33:14 +00:00

26 lines
492 B
Python

class Base:
#: docstring
inheritedattr = None
def inheritedmeth(self):
"""Inherited function."""
@classmethod
def inheritedclassmeth(cls):
"""Inherited class method."""
@staticmethod
def inheritedstaticmeth(cls): # NoQA: PLW0211
"""Inherited static method."""
class Derived(Base):
def inheritedmeth(self):
# no docstring here
pass
class MyList(list): # NoQA: FURB189
def meth(self):
"""docstring"""