Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can you elaborate on how your projects are unblocked? My reading of it was that these improvements are nice, but nothing groundbreaking.


I wouldn't quite say they're gamechangers, but they're exactly what I happened to need.

Variadic generics will (I hope) be very nice for typing pre-2.0 SQLAlchemy code. `Query[*Ts]` or similar would be a natural type for many values from the ORM API, and hopefully allow expressing types for query transformations like adding or removing columns, joining to specific query shapes, adding arbitrary subqueries, etc.

The self-type might unblock a testing tool I haven't shipped because the DX isn't where I want it. IIRC: normal TypeVar binding plus the TypeVar hack for self-types, interacting with Mypy's particular way of detecting the type of a descriptor, interacting with the way the project uses mixins, sometimes produce types that technically aren't wrong but lead to spurious type errors in user-defined data fixtures. So I'm probably the only one on earth with this particular problem.

I don't know, it's been a while. Maybe it won't work. But the self-type hack is noisy anyway and getting rid of it is nice.

Shipping TOML in the standard library means I can drop a bunch of Tox gymnastics in projects that support pyproject.toml or TOML-based configuration in addition to the older standards, and now I'm not stuck either forcing certain TOML libraries on people or working out a way to plug in their choice. It's not that hard, but complexity multiplies, and now it's one less thing to deal with.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: