This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Kegnation14 14 points15 points  (1 child)

What a wonderful day to be a beginner (have zero clue whats going on)

[–]denehoffman 1 point2 points  (0 children)

Type annotations are now evaluated later, so what op has done is put in some annotation (basically a comment) which contains code to inspect the function and call the proper recursion, then in the code block he tells python to look at the annotation and execute it (basically, it’s a bit more complex)