@carlton would love to eventually chat with you about what I have in mind, but I need to make a POC first 😊
Our Grants are open until the 14th of January 2024 AoE!
If you always wanted to attend PyCon Italia but couldn’t make it work, our grant program can help!
More info on http://pycon.it/grants-info!
🚨 Don't miss out! Early Bird tickets are still available!
The tickets are limited in quantity and, like hot pizza slices, won't last long! 🍕
Grab yours ASAP at http://pycon.it/tickets 🎟️
@tintvrtkovic @carlton thanks! I really wanted to avoid having to pass str, but maybe that's fine 😊
@slott56 Here's what I'm working with: https://github.com/autopub/autopub/pull/31/commits/58bb262c1b31f51887
@slott56 mmh, maybe the design I have is bad, basically I'm writing a tool that supports plugins (which are Python classes), these plugins can be configurable (there's a base class that has the validation for the config.
I basically wanted to make sure that a plugin's configuration was properly typed without having to define the configuration type (since we are defining the configuration class already)
@orsinium @slott56 there's a PEP for implementing type checking for dataclasses like tools: https://peps.python.org/pep-0681/
@slott56 yes, I'd love for that to be possible 😊
I've been trying to do something like this with TypeScript but doesn't seem to be possible there either
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.