Skip to content

Update imports to be modules not classes#46

Merged
jeffcarp merged 1 commit intogoogle:mainfrom
jeffcarp:imports
Mar 27, 2025
Merged

Update imports to be modules not classes#46
jeffcarp merged 1 commit intogoogle:mainfrom
jeffcarp:imports

Conversation

@jeffcarp
Copy link
Collaborator

This aligns with the Google style guide:
https://google.github.io/styleguide/pyguide.html#22-imports

Also remove __all__ from __init__.py files. This only applies when using import *, which is not common or recommended, so it's not worth us protecting against within the library.

@jeffcarp jeffcarp requested a review from jshin1394 March 27, 2025 16:19
@jeffcarp jeffcarp force-pushed the imports branch 2 times, most recently from d26a8a8 to 76c899c Compare March 27, 2025 16:20
@jshin1394
Copy link
Collaborator

LGTM. let's clean up the lint check

This aligns with the Google style guide:
https://google.github.io/styleguide/pyguide.html#22-imports

Also remove `__all__` from `__init__.py` files. This only applies when
using `import *`, which is not common or recommended, so it's not worth us
protecting against within the library.
@jeffcarp
Copy link
Collaborator Author

Done thanks. Added a note about linting to CONTRIBUTING.md.

@jeffcarp jeffcarp merged commit c698d95 into google:main Mar 27, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants