[Tutor] Type hint question

Mats Wichmann mats at wichmann.us
Thu Sep 26 15:32:28 EDT 2024


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.


More information about the Tutor mailing list