News for hackers. Stuff that matters.
Re:Ty: A fast Python type checker and language server by jakewins on Thursday May 08, 2025 @01:22AM (#43923293)
My experience is this is nearly impossible, the solution is new packages written after typing was introduced.

I don’t know about SQLAlchemy, but for libraries like pandas I just don’t see how it can be done, and so people are actively replacing them with modern typed alternatives

Re:Ty: A fast Python type checker and language server by davedx on Thursday May 08, 2025 @02:18AM (#43923557)
Ha. I just finished a huge rewrite at work from sync SQLAlchemy to async SQLAlchemy, because the async version uses a totally different API (core queries) to sync. So this implies if I want type checking I need to use a different ORM and start again?

I love how Python makes me so much faster due to its dynamic nature! Move fast, break things!

Re:Ty: A fast Python type checker and language server by mapcars on Thursday May 08, 2025 @05:32AM (#43924556)
I don't agree that dynamic nature makes things necessarily faster, if you compare Python to C or Java it is true, but if you compare to Typescript it is not. With a decent typing system and a good editor that makes use of it (and AI-assistants nowadays) the prototyping can actually be both faster and more stable.
Re:Ty: A fast Python type checker and language server by networked on Thursday May 08, 2025 @10:43AM (#43926526)
I think davedx was being sarcastic. Python's dynamic nature cost them time.
Re:Ty: A fast Python type checker and language server by davedx on Thursday May 08, 2025 @11:03AM (#43926764)
Yes, I 100% agree. My career has been Java/C++ -> php/JavaScript -> typescript/python. Types are a godsend