mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 08:26:50 +00:00
Unwrap staticmethod if necessary when checking python docstrings
* Happens on github CI for some reason.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user