mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-08-31 12:46:38 +00:00
test: ignore external inherited docstrings
This commit is contained in:
@@ -295,6 +295,8 @@ def iter_docstrings(package_name: str):
|
|||||||
# Methods of classes
|
# Methods of classes
|
||||||
if inspect.isclass(obj):
|
if inspect.isclass(obj):
|
||||||
for _, meth in inspect.getmembers(obj, inspect.isfunction):
|
for _, meth in inspect.getmembers(obj, inspect.isfunction):
|
||||||
|
if not getattr(meth, "__module__", "").startswith(package_name + "."):
|
||||||
|
continue
|
||||||
if meth.__doc__:
|
if meth.__doc__:
|
||||||
yield f"{module.__name__}.{obj.__name__}.{meth.__name__}", inspect.getdoc(meth)
|
yield f"{module.__name__}.{obj.__name__}.{meth.__name__}", inspect.getdoc(meth)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user