I came across a function definition (inside a class) which has a "
And I guess: Any particular reasons/benefits for using it.
In case it might matter (probably not). Its used in some python script that is used within an otherwise Java environment.
name1: name2
" part.def func(self, name1: name2):Has that "
name1: name2
" syntax a name? (general searching is a bit tricky on this one)And I guess: Any particular reasons/benefits for using it.
In case it might matter (probably not). Its used in some python script that is used within an otherwise Java environment.
Going beyond the idiomatic Python (Sensible Idiomatic usage - Blog post - Sep 11th 2017)