Why is mypy checking pytorch_lightning/plugins/precision/native_amp.py?
#9751
Locked
daniellepintz
started this conversation in
General
Replies: 3 comments 3 replies
-
|
Hey @daniellepintz |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I'm pretty sure this happens because the This means the type stubs for torch, apex, torchmetrics, ... aren't available in CI. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Is there any way we can get around this? It is frustrating to see different output locally vs CI |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I run
mypy(from main directory) I get a bunch of errors, most of which are in the files listed in the "allowlist" here:https://github.com/PyTorchLightning/pytorch-lightning/blob/60d4cc4f90e75657f08a3cade7e52c91c1a86a34/pyproject.toml#L64-L85
However I also see this file is checked, and I am confused because it is not in the allowlist:
cc @awaelchli
Beta Was this translation helpful? Give feedback.
All reactions