Debian Codegraph @

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

raw
1 class Base:
2 #: docstring
3 inheritedattr = None
4
5 def inheritedmeth(self):
6 """Inherited function."""
7
8 @classmethod
9 def inheritedclassmeth(cls):
10 """Inherited class method."""
11
12 @staticmethod
13 def inheritedstaticmeth(cls): # NoQA: PLW0211
14 """Inherited static method."""
15
16
17 class AnotherBase:
18 #: docstring
19 def another_inheritedmeth(self):
20 """Another inherited function."""
21
22
23 class Derived(Base, AnotherBase):
24 def inheritedmeth(self):
25 # no docstring here
26 pass
27
28
29 class MyList(list): # NoQA: FURB189
30 def meth(self):
31 """docstring"""