[Tutor] What is Tuple in the typing module?

2019-08-17 Thread C W
Hi everyone, What exactly is Tuple in the typing module? What does it do? This is the definition from its website. https://docs.python.org/3/library/typing.html "A type alias is defined by assigning the type to the alias" I have no idea what that means. Here's the example from the documentation

Re: [Tutor] What is Tuple in the typing module?

2019-08-17 Thread Peter Otten
C W wrote: > Hi everyone, > > What exactly is Tuple in the typing module? What does it do? > > This is the definition from its website. > https://docs.python.org/3/library/typing.html > "A type alias is defined by assigning the type to the alias" > > I have no idea what that means. > > Here's

Re: [Tutor] What is Tuple in the typing module?

2019-08-17 Thread Alan Gauld via Tutor
On 17/08/2019 00:46, C W wrote: The formatting seems messed up I'll try to straighten it out. I hope I get it right! Caveat: I'm no expert in the typing module, I've read the docs but never found any use for it. > What exactly is Tuple in the typing module? What does it do? It specifies a tuple