-
Notifications
You must be signed in to change notification settings - Fork 33
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
import inside functions #117
Comments
Yes you should always refactor the imports to be at the top of the module |
self assigning so that I remember to add this to the development guide |
@Islast What are you planning to add to the guide? |
A note that in general imports should go at the top of the file |
(This is almost certainly me having no idea what I was doing when I wrote this code! Thank you for doing a much cleaner job @wingedRuslan & @Islast 💖) |
Closing since #120 adds this style reccomendation to the documentation |
Hi!
There are a bunch of functions, where import statements are inside the functions' body.
Is this made intentionally? Should I refactor and include import only at the top of a module??
Some references:
Module importing is quite fast, but not instant. This means that:
The text was updated successfully, but these errors were encountered: