[Python-Dev] Re: PEP 647 (type guards) -- final call for comments

2021年2月13日 16:13:57 -0800

On 14/02/21 8:48 am, Eric Traut wrote:
def is_str_list(val: Constrains[List[object]:List[str]) -> bool:
 ...
Maybe something like this?
def is_str_list(val: List[str] if True else List[object]) -> bool:
 ...
--
Greg
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/GLHQVM7NIYO2GZHGREJ5FE2KJ7AI3DTQ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to