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
Would be good to use some AST inference in order to have better output when a package is using append or extend on __all__ variable. Currently, we ignore those names, so they don't get re-exported.
The text was updated successfully, but these errors were encountered:
Following pyright and mypy: the following idioms should be supported for defining the values contained within __all__.
These restrictions allow pydoctor to statically determine the value of __all__.
importsubmodule# or from x.y import submodule__all__= ('a', 'b')
__all__= ['a', 'b']
__all__+= ['a', 'b']
__all__+=submodule.__all____all__.extend(['a', 'b'])
__all__.extend(submodule.__all__)
__all__.append('a')
fromsubmoduleimport__all__assubmod_all__all__.extend(submod_all)
Would be good to use some AST inference in order to have better output when a package is using
append
orextend
on__all__
variable. Currently, we ignore those names, so they don't get re-exported.The text was updated successfully, but these errors were encountered: