Skip to content

Imports in some __init__.py files should be made explicit #1114

Open
@chenkasirer

Description

@chenkasirer

Originally posted by @brgcode in #1111 (comment)

The __all__ attribute in some __init__.py files should be populated with items explicitly rather than with iteration on dir().

For example here:

__all__ = [name for name in dir() if not name.startswith("_")]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions