From 501b1d3f4293a4a3c27ad38fd74e995584799576 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 20 Nov 2023 21:22:48 +0100 Subject: [PATCH] f --- docs/find-missing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/find-missing.py b/docs/find-missing.py index d9d3849992..ac61890030 100755 --- a/docs/find-missing.py +++ b/docs/find-missing.py @@ -94,15 +94,15 @@ def handle_python_module(fullname, englobing, elm): elif isinstance(elm, (int, str)): # We do have such a data, directly in the SimGrid top module found_decl("data", fullname) # print('.. autodata:: {}'.format(fullname)) + elif inspect.isclass(type(elm)): # Enum classes are of that kind + found_decl("data", fullname) + #print('.. autodata:: {}'.format(fullname)) elif inspect.ismodule(elm) or inspect.isclass(elm): for name, data in inspect.getmembers(elm): if name.startswith('__'): continue # print("Recurse on {}.{}".format(fullname, name)) handle_python_module("{}.{}".format(fullname, name), elm, data) - elif inspect.isclass(type(elm)): - found_decl("enumvalue", fullname) - print('.. autoenumvalue:: {}'.format(fullname)) else: print('UNHANDLED TYPE {} : {!r} Type: {} Englobing: {} str: {} Members: \n{}\n'.format(fullname, elm, type(elm), englobing, str(elm), inspect.getmembers(elm))) -- 2.20.1