Re: Type hint question
Mats Wichmann <[email protected]> Thu, 26 Sep 2024 13:32:28 -0600
| Newsgroups | gmane.comp.python.tutor |
|---|---|
| Message-ID | <[email protected]> |
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.
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor