0
What does Arrow means in below statement
Hai guys can you tell me how it works "def method (self,s:str)->lost[str]:"
3 Réponses
+ 1
It's a type hint
It does nothing to the code itself
But it means the function should return that type
But there will not be any type check!
It's just like the __doc__ string
0
Can you give me any example program