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 ?
    

    


    

    def func() -> Tuple[int, int]">

(original) (raw)

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 ?


def func() -> Tuple\[int, int\]





But this requires to import the typing module.





Or this (doesn't crash):





def func() -> (int, int):