You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @tristanlatr , funny you should mention this! I've been having this in the back of my mind (in addition to a few other things that should make traversing the API tree easier). And it actually came up as well yesterday on a Pydoc-Markdown PR discussion 😄
I'd prefer to introduce a new _ModuleMemberType which can include Module objects (and you need to also include Module in the t.Union[...]), as otherwise classes could contain modules.
Doing this should be mostly backwards-compatible, but docspec-python would need to be updated to return the modules nested instead of flat. This would probably need to be an option that is disabled by default (or a function to be applied after you have a list of modules) . I'm not sure yet how Pydoc-Markdown renderers would behave with nested modules, but most likely it won't work as expected right now.
* move unit tests in src/test
* add very simple ReverseMap unit test
* address #15, add ApiObject.parent
* update action to trigger on develop only
* regenerate setup.py
* actually our main branch is called main
* regenerate setup.py
* remove test/__init__.py as that will cause an error when pytest tries to import the test modules for execution in one single process
* fix test
* add types-Deprecated to dev requirements, fix type hint
Hello,
It seems that the
_MemberType
variable is assigned to the following:I was wondering if the _MemberType should be assign to the following instead:
This way, modules will be able to contain other modules!
Tell me what you think,
Thanks
The text was updated successfully, but these errors were encountered: