6

Which Python projects have completed their transition to a type system successfu...

 2 years ago
source link: https://lobste.rs/s/8ou90b/which_python_projects_have_completed
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Which Python projects have completed their transition to a type system successfully?

I am looking for large Python projects that have completed transition to the type system successfully. So far, I know about urllib3, and w3lib. I also know about typeshed. Which others? And any observations from those who attempted the transition?

  1. Flask recently added type stubs, around the time 2.0 was being released. Turns out it was rather easy(?) because it didn’t take that long, was done by a single contributor and took 800 lines of type hints.

    As for my experience with adding types to a project, it’s usually fairly seamless, and more often than not, you’ll end up finding subtle bugs in your code instead of the type checker getting in the way.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK