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
These warnings will appear when using the next pydoctor release:
src/twisted/test/proto_helpers.py:13: Cannot parse value assigned to "__all__"
src/twisted/application/twist/_options.py:79: Unable to figure out value for __doc__ assignment, maybe too complex
src/twisted/application/twist/_options.py:104: Unable to figure out value for __doc__ assignment, maybe too complex
src/twisted/application/twist/_options.py:147: Unable to figure out value for __doc__ assignment, maybe too complex
The warning about __all__ happens because the __all__ value from the new module is re-used in the deprecated module. I think this is incorrect: if the new module adds names to __all__, those new names should not show up in the deprecated module. So my suggestion is to assign an explicit list to __all__ containing only the deprecated names.
The __doc__ assignments warned about are not regular docstrings. Instead, they're help texts for twisted.python.Options. Therefore we should probably hide those docstrings or at least the runtime modifications of them from pydoctor, which can be done by wrapping the modifications into a function.
#!CommitTicketReference repository="" revision="09b96850c2ebcb635f448ed3f9bbf5f157be3693"
Merge pull request #1505 from twisted/10080-cleanup-doc-all
Author: mthuurne
Reviewer: adiroiban
Fixes: ticket:10080
Fix or work around stricter pydoctor warnings about __all__ and __doc__
These warnings will appear when using the next pydoctor release:
The warning about
__all__
happens because the__all__
value from the new module is re-used in the deprecated module. I think this is incorrect: if the new module adds names to__all__
, those new names should not show up in the deprecated module. So my suggestion is to assign an explicit list to__all__
containing only the deprecated names.The
__doc__
assignments warned about are not regular docstrings. Instead, they're help texts fortwisted.python.Options
. Therefore we should probably hide those docstrings or at least the runtime modifications of them from pydoctor, which can be done by wrapping the modifications into a function.Searchable metadata
The text was updated successfully, but these errors were encountered: