Stewori / pytypes

Typing-toolbox for Python 3 _and_ 2.7 w.r.t. PEP 484.
Apache License 2.0
200 stars 20 forks source link

Change typechecked to consistently return exact input type #98

Closed dbarnett closed 4 years ago

dbarnett commented 4 years ago

Changes typechecked to consistently return the original input string when passed a string module name as its argument. This replaces the behavior of sometimes returning the resolved module for that name and sometimes returning the original string depending on various factors, which made the return type awkward to actually rely on anyway.

Fixes #97.