Unwrap staticmethod if necessary when checking python docstrings

* Happens on github CI for some reason.
This commit is contained in:
baldurk
2025-02-11 00:21:39 +00:00
parent 83a3f480c2
commit 1c7a4c24dd
+3
View File
@@ -140,6 +140,9 @@ def check_function(parent_name, objname, obj, source, global_func, typelist):
if args.verbose:
print("Checking {} function {}.{}".format('global' if global_func else 'member', parent_name, objname))
if obj.__class__ is staticmethod:
obj = obj.__func__
docstring = obj.__doc__
params = PARAM_PATTERN.findall(docstring)