Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean / clear all __init__.py #38

Open
Stannislav opened this issue Apr 22, 2022 · 0 comments
Open

Clean / clear all __init__.py #38

Stannislav opened this issue Apr 22, 2022 · 0 comments

Comments

@Stannislav
Copy link
Contributor

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant