News for hackers. Stuff that matters.
Re:Ty: A fast Python type checker and language server by _carljm on Thursday May 08, 2025 @12:33AM (#43923080)
I agree that would be nice; probably not near the top of our list right now (and not trivial to implement), but it makes sense. Thanks for the suggestion.
Re:Ty: A fast Python type checker and language server by jychang on Thursday May 08, 2025 @06:55AM (#43924972)
Nontrivial way to do it is dynamically scan the python 3.12 namespace, and add these warnings.

Is there any big downside to do it the boring way, hardcode a list and compare the error to the list?

Re:Ty: A fast Python type checker and language server by _carljm on Thursday May 08, 2025 @02:53PM (#43929906)
This information is already maintained via `if sys.version_info >= (...):` conditionals in typeshed stubs. I don't think this is important enough to justify maintaining the same information in a duplicate way.