summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-ext-autodoc/target/inheritance.py
blob: e06f7a842b21c964a9d912897755d68f9737ba52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"""