ในวันที่ ศ. 13 มี.ค. 2020 23:02 F H <[email protected]> เขียนว่า:
> Hi, > > I am documenting a Python package with the *autodoc* extension, using the > automodule directive. My package contains three sub-packages and four > __init__ modules, which all contain functions and attributes to be > documented. My problem is that when I automodule these __init__ modules, > all functions are listed as some_package.__init__.some_function(). But I > would like them to be displayed as some_package.some_function() instead. > > I have modified the __module__ and __qualname__ attribute of the object > provided by the event autodoc-process-signature , removing these parts, > but that seems to have no impact on the generated signature. So my question > is: How do I modify the fully qualified name of a signature? > > Cheers, > Ferdinand > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sphinx-users/98c45484-d352-46d7-9c64-afe24fd2ba36%40googlegroups.com > <https://groups.google.com/d/msgid/sphinx-users/98c45484-d352-46d7-9c64-afe24fd2ba36%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/CANvkWZZpLhq6-OG8z6Q5CZXfwwrDwdFPT_%2B4OiTHa_L4GnmA%3DA%40mail.gmail.com.
