Skip to content

Clean / clear all __init__.py #38

@Stannislav

Description

@Stannislav

It would be good to remove all code from all __init__.py files, in particular also all __all__ statements. See for example morphoclass/data/__init__.py. This will speed up imports since unused submodule imports will no longer be done, and will also render the code structure more simple and transparent.

Ideally all __init__.py should have at most these 3 elements:

  • License notice header
  • Module docstring
  • from __future__ import annotations (since isort is configured to automatically add this line to all .py-files)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions