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

Add import aliases to make mypy happy #1383

Merged
merged 1 commit into from Dec 28, 2023

Conversation

a1d4r
Copy link
Contributor

@a1d4r a1d4r commented Dec 28, 2023

Mypy with strict mode enabled gives the following error on version 7.2.2:

error: Module "minio" does not explicitly export attribute "Minio"  [attr-defined]

The error is caused by rule --no-implicit-reexport. There are two ways how to fix it: either define __all__ in __init__.py or use import aliases so that other modules can import it. In this PR I added aliases for all imports in __init__.py.

@harshavardhana harshavardhana merged commit 9ae2c47 into minio:master Dec 28, 2023
18 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.

None yet

3 participants