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

Avoid wildcard imports for improved code readability and maintainability #1

Open
enoobis opened this issue Jun 13, 2023 · 0 comments
Open
Labels
help wanted Extra attention is needed

Comments

@enoobis
Copy link
Owner

enoobis commented Jun 13, 2023

Problem:

When using wildcard imports (from module import *) in the codebase, it introduces several issues that impact code readability and maintainability. The current code contains wildcard imports, which can lead to namespace pollution, hinder understanding of imported items' origins, and make the code more dependent on internal module implementations.

Task:

Refactor the codebase to replace wildcard imports with explicit imports. Identify the specific functions, classes, or variables needed from each module and import them explicitly using separate import statements.

Example

# Current code
from module_name import *

# Refactored code
from module_name import specific_function
@enoobis enoobis added the help wanted Extra attention is needed label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant