avoid a function call with redundant checks for dict size
avoid a function call with redundant checks for dict size

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