-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lightning: make type hints public #17100
Conversation
Last time we added this was in #3187. Pinging the same people involved in that PR: @MarioIshac @Borda @rohitgr7 |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #17100 +/- ##
========================================
- Coverage 83% 82% -0%
========================================
Files 415 415
Lines 31657 31657
========================================
- Hits 26223 26072 -151
- Misses 5434 5585 +151 |
Tests seem to be failing so this wasn't auto-merged. Anything I can do to fix these tests? I couldn't tell what was wrong or whether it was just a transient failure. |
Still failing... |
yes, well, I can move them back but what is your question? :) |
My question is that this PR was supposed to add type hints to lightning, but does not add type hints to lightning. Does anyone know how to add type hints to lightning? The build system is quite confusing and I have no idea how things are supposed to work. In order for mypy to find the type hints, they must be in:
(same for other packages, but I care less about those) |
I see, added it to the manifest |
Thanks, I now see |
Anyone know how to solve the failing tests? Merging master doesn't seem to be working. |
Let's see if Lightning-Universe/lightning-quick-start#30 helped, otherwise we can consider force-merging it |
That one is falling for a while without any apparent change on the framework side... |
Just realized that tests on the master branch haven't passed in months. Makes me feel better about this PR I guess. Still alarming... Any idea if the failing tests here are new and introduced by my PR or old and we can safely merge? |
* Add missing MANIFESTs * move * one more * Ignore version.info properly * move * manifest --------- Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com> Co-authored-by: Jirka <jirka.borovec@seznam.cz> Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com> (cherry picked from commit 3d7360a)
* Add missing MANIFESTs * move * one more * Ignore version.info properly * move * manifest --------- Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com> Co-authored-by: Jirka <jirka.borovec@seznam.cz> Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com> (cherry picked from commit 3d7360a)
* Add missing MANIFESTs * move * one more * Ignore version.info properly * move * manifest --------- Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com> Co-authored-by: Jirka <jirka.borovec@seznam.cz> Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com> (cherry picked from commit 3d7360a)
* Add missing MANIFESTs * move * one more * Ignore version.info properly * move * manifest --------- Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com> Co-authored-by: Jirka <jirka.borovec@seznam.cz> Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com> (cherry picked from commit 3d7360a)
This is working perfectly in 2.0.3, thanks! |
What does this PR do?
In TorchGeo, we recently switched from
import pytorch_lightning
toimport lightning
. I was surprised to see that all types hints were missing. It looks like apy.typed
file was added forpytorch_lightning
but not for other namespaces. This PR fixes that by adding it to all namespaces.Before submitting
PR review
Reviewer checklist