mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
It allows to suppress inherited members of several classes on the module at once by specifying the option to `automodule` directive
23 lines
423 B
Python
23 lines
423 B
Python
class Base(object):
|
|
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"""
|