I actually like #PEP695, I've been meaning to use and implement generic classes more, especially when developing #opensource packages that are extendable.
Woo, PEP 695: Type Parameter Syntax has been accepted for Python 3.12! Soon you will be able to define generic functions and classes without using TypeVar ugliness.
More info: https://discuss.python.org/t/pep-695-type-parameter-syntax/21646/92
#Python needs a simpler generics syntax. The proposal PEP 695 is already here: https://peps.python.org/pep-0695/ Hope it advances to the next stage this year. In the mean time, is there a transpiler like #Babel or another way to use proposed syntax for hobby projects?
#python #babel #pep695 #generics