Closed wingedRuslan closed 5 years ago
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: 1) PEP8
Module importing is quite fast, but not instant. This means that: