TypeError in typeassert, expected

As a non-guru myself, how would the argument names be useful in that example?