A typo revealed a statement I don't understand. Can someone explain what the purpose of the colon is in this context?
>>> test : 'what does this do?'
I thought it might be an implicit dict like the implicit tuple
>>> 1,2
(1, 2)
But does not return anything. So I started to mess with it and found an error.
>>> True : 'fs'
File "<stdin>", line 1
SyntaxError: illegal target for annotation
So I looked up that error to find PEP 526 which I don't understand either :-)
>>> xx : int
>>> xx = 'sdfs'
>>> xx
'sdfs'
I mean its not type checking as I'm able to assign a string. Can someone please help me understand this ?