2022-10-17 09:54:59 -05:00
|
|
|
class Base:
|
2022-06-13 12:49:07 -05:00
|
|
|
#: docstring
|
|
|
|
inheritedattr = None
|
|
|
|
|
2019-06-03 08:34:33 -05:00
|
|
|
def inheritedmeth(self):
|
|
|
|
"""Inherited function."""
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def inheritedclassmeth(cls):
|
|
|
|
"""Inherited class method."""
|
|
|
|
|
|
|
|
@staticmethod
|
2025-01-02 19:09:26 -06:00
|
|
|
def inheritedstaticmeth(cls): # NoQA: PLW0211
|
2019-06-03 08:34:33 -05:00
|
|
|
"""Inherited static method."""
|
|
|
|
|
|
|
|
|
|
|
|
class Derived(Base):
|
|
|
|
def inheritedmeth(self):
|
|
|
|
# no docstring here
|
|
|
|
pass
|
2022-04-02 11:42:16 -05:00
|
|
|
|
|
|
|
|
2025-01-02 19:09:26 -06:00
|
|
|
class MyList(list): # NoQA: FURB189
|
2022-04-02 11:42:16 -05:00
|
|
|
def meth(self):
|
|
|
|
"""docstring"""
|