On 9/26/24 13:10, Albert-Jan Roskam wrote: > The TypeVar will probably be more useful if it applies some contraint... > > > === > You mean TypeVar("T", str, int) or something similar? Or "if > isinstance(value, str)"? I meant the former.