Does anyone know how if in #Python it is possible to define a generic class that infers the type of the generic from an attribute?
Something like this:
```
T = TypeVar("T")
class Example(Generic[T]):
Config: type[T]
configuration: T
class SubExample(Example):
Config = str
reveal_type(SubExample().configuration)
```
currently Pylance and Mypy complain about Example not being passed the TypeVar, I wonder if there's a different way to achieve this 👀
Congratulations to the new Python Steering Council for 2024!
* Pablo Galindo Salgado
* Gregory P. Smith @gpshead
* Barry Warsaw @flufl
* Emily Morehouse
* Thomas Wouters @Yhg1s
https://discuss.python.org/t/steering-council-election-results-2024-term/40851?u=hugovk
https://hugovk.github.io/python-steering-council/
#Python #SteeringCouncil #PythonSteeringCouncil
🚨 You can now buy your PyCon Italia ticket! 🚨
Early Bird tickets are now available on http://pycon.it! And they won’t be around for long, as they are limited in quantity!
Get them now! ⚡
PyCon Italia needs you!
Got an innovative talk or workshop idea? Our call for proposals is now open!
Bleeding edge or well-known tech, first-time or experienced speakers, everything and everyone is welcome! 🙌
PyCon Italia is your conference! https://pycon.it/call-for-proposals
🚉More sustainable travel options for you soon.
Earlier this year, we announced we’re supporting ten pilot cross-border rail services, connecting more cities and shaping the future of train mobility, including:
🚆 Connecting 🇭🇺 Hungary, 🇦🇹 Austria and 🇷🇴 Romania;
🚆 New night train service 🇫🇷 Paris – 🇮🇹 Milan – 🇮🇹 Venice;
🚆 New service 🇩🇪 Munich – 🇨🇭 Zurich;
🚆 New night train service 🇳🇱 Amsterdam – 🇪🇸 Barcelona.