Is there a rule to ban lazy built-in imports? #6615
-
def read_foo():
import os # os should be moved to the top-level.
return os.getenv("FOO") |
Beta Was this translation helpful? Give feedback.
Answered by
charliermarsh
Aug 16, 2023
Replies: 1 comment 5 replies
-
I don't think we have a rule that covers this — seems worth adding to me. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have this: #5180