June 6, 2023
2:29 p.m.
I am curious how things work now that PEP 695 has been accepted... If there is a way to get generic type params from inside classmethods or init. FWIW I have worked around this in the project where I am using generic classes at runtime (https://egg-smol-python.readthedocs.io/en/latest/reference/egglog-translatio...), by actually at runtime *not* having them be classes but instances that have __getitem__ implemented. Statically, type checkers still think it's a type, but at runtime, it's not.