Why is mypy checking pytorch_lightning/plugins/precision/native_amp.py
?
#9751
Replies: 3 comments 3 replies
-
Hey @daniellepintz |
Beta Was this translation helpful? Give feedback.
-
I'm pretty sure this happens because the https://github.com/PyTorchLightning/pytorch-lightning/blob/master/.github/workflows/code-checks.yml This means the type stubs for torch, apex, torchmetrics, ... aren't available in CI. |
Beta Was this translation helpful? Give feedback.
-
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.
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