Avoid unnecessary recursive function calls (closes #10519)
Avoid unnecessary recursive function calls (closes #10519)

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator