happy-psychiatrist-90774
08/20/2024, 3:06 PMLetter
)
If I've got, say A
and B
, it seems to be impossible to create a rule, because it doesn't accept TypeVar
return type
The only "workaround" I found is to create a custom dataclass with a single property letter
and then have that as the return value, but that's cumbersome because every time I use it I have to go letter.letter.<my_attr>
Is there a better way?fast-nail-55400
08/20/2024, 3:37 PMfast-nail-55400
08/20/2024, 3:37 PMfast-nail-55400
08/20/2024, 3:41 PMWrappedTarget
happy-psychiatrist-90774
08/20/2024, 3:46 PMhappy-psychiatrist-90774
08/20/2024, 3:46 PMcurved-television-6568
08/21/2024, 9:10 AMcurved-television-6568
08/21/2024, 9:12 AMhappy-psychiatrist-90774
08/21/2024, 12:05 PMcurved-television-6568
08/22/2024, 7:42 AM