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

chore: no implicit reexport #1394

Merged

Conversation

jorwoods
Copy link
Contributor

@jorwoods jorwoods commented Jun 9, 2024

Mypy has a setting to check for implicit reexports. In separate testing I have found that explicit exports, like what is used in this commit, make it easier for language servers to detect what is actually exported by the library which makes use by end users easier.

PEP8 specifies that "relative imports for intra-package imports are highly discouraged. Always use the absolute package path for all imports." This commit also makes imports absolute to comply with PEP8.

Mypy has a setting to check for implicit reexports. In separate
testing I have found that explicit exports, like what is used in
this commit, make it easier for language servers to detect what
is actually exported by the library which makes use by end users
easier.

PEP8 specifies that "relative imports for intra-package imports
are highly discouraged. Always use the absolute package path for
all imports." This commit also makes imports absolute to comply
with PEP8.
@jorwoods jorwoods force-pushed the jorwoods/no_implicit_reexport branch from 26885be to 7169791 Compare June 16, 2024 03:33
Copy link
Contributor

@jacalata jacalata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love it

@jacalata jacalata merged commit 7d134c2 into tableau:development Jun 19, 2024
21 checks passed
@jorwoods jorwoods deleted the jorwoods/no_implicit_reexport branch June 20, 2024 00:45
@jorwoods jorwoods mentioned this pull request Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants