module-import-not-at-top-of-file
ignore after os.environ
#10059
Labels
rule
Implementing or modifying a lint rule
Sometimes you need to set an environment variable before importing a package, for example:
See: https://discuss.pytorch.org/t/runtimeerror-device-0-device-num-gpus-internal-assert-failed/178118/6
My suggestion is to ignore E402
module-import-not-at-top-of-file
if it comes after aos.environ
statement, similar to #9047The text was updated successfully, but these errors were encountered: