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

Replace "import foo" by "from foo import SpecificFoo" #96

Open
brunorijsman opened this issue Jul 14, 2020 · 0 comments
Open

Replace "import foo" by "from foo import SpecificFoo" #96

brunorijsman opened this issue Jul 14, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@brunorijsman
Copy link
Owner

Instead of importing entire modules everywhere:

import foo

Import specific things from each module:

from foo import SpecificFoo

This makes the code shorter and easier to read later on: instead of "foo.SpecificFoo" we can just use "SpecificFoo"

@brunorijsman brunorijsman added the enhancement New feature or request label Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant