question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve typing coverage (4/n)

See original GitHub issue

🚀 Typing coverage

Let’s improve typing coverage of PyTorch Lightning together!

I’m creating a new issue in order to increase visibility. There are three older issues (#7037, #5023, #4698) which became stale over time.

Plan

Currently, there are 55 files which are excluded from mypy checks so that our CI does not fail. These files vastly differ in difficulty in order to make the typing complete. For this reason, we are introducing difficulty estimate for each file so that community members can choose to work on the files appropriate to their skill level.

Please, comment on this issue in order to reserve a particular file to work on. Once you do so, I will edit this top comment to avoid collisions. Once you think your work is finished, please open a PR referencing this issue which:

  • removes the corresponding line from pyproject.toml
  • and passes mypy checks with the corresponding line removed. You can test it locally by running mypy from root directory

If you are struggling with pushing it over the finish line, open the PR anyway and someone from our team will help you to get it there. 🚀

Please note, that it can happen that you may need to edit more than just one file. This is fine, but please keep in mind, that the goal of your PR will be to make the check passing for the chosen file. Also, please note that the difficulty is just an educated guess.

For those of you who are not familiar with the process of contributing a PR, we have prepared a simple guide that will walk you through the necessary steps. You can do it! 🚀 💪

List of files and guesstimated difficulty

Completed

Difficulty 1 of 3

Difficulty 2 of 3

Difficulty 3 of 3

~- [ ] pytorch_lightning/trainer/callback_hook.py @JustinGoheen #13807 ~

cc @borda @justusschock @awaelchli @rohitgr7 @Borda @tchaton @aniketmaurya @kingjuno @alat-rights @carmocca @akihironitta @stancld as you were all involved in previous issues

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:33
  • Comments:105 (97 by maintainers)

github_iconTop GitHub Comments

15reactions
otajcommented, Oct 3, 2022

🎉 We did it! 🎉 We just closed last PR resolving typing in PyTorch portion of Lightning 🎉 Thanks to everyone, who contributed, namely @carmocca @nninept @JustinGoheen @CyprienRicque @gautierdag @krishnakalyan3 @ar90n @donlapark @alro923 @himkt @BongYang @HalestormAI @lijm1358 @nandwalritik 🎉

5reactions
awaelchlicommented, Aug 3, 2022

Small milestone reached: We completed all files under the loggers module. Thanks for the help everyone. 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

4 Tips for Improving Your Typing Accuracy and Speed - Indeed
How to improve your typing speed and accuracy · 1. Start slowly · 2. Learn proper typing position · 3. Start by typing...
Read more >
How to Improve Typing Speed: Touch Typing, Ergonomics ...
1. Arrange your fingers properly. The most important step to improving your typing speed is ensuring that you place your fingers correctly on...
Read more >
How to Improve Typing Speed: 11 Tips to Increase WPM - Notta
11 tips for improving your typing speed: 1. Test Your Current Typing Speed; 2. Make your Goal Progress, not Perfection; 3.
Read more >
4 Tips for Improving Your Typing Speed and Accuracy
One way to avoid this is to aim for progress over perfection. Start slowly and seek to improve a little bit each time....
Read more >
How to increase your typing speed – Quill.com Blog
How to increase your typing speed · Focus on accuracy over speed · Stop with the hunt and peck · Practice this phrase...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found