This is my first post on this list, so please don't kill me if I ask it
in the wrong place, or if the question is stupid.
I asked this question on Stack Overflow already:
https://stackoverflow.com/questions/47163048/python-annotations-difference-between-tuple-and
In very short, which form is correct ?
|deffunc()->Tuple[int,int] |||
||
But this requires to import the typing module.
Or this (doesn't crash):
|deffunc()->(int,int): |
||
||
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com