Closed dbarnett closed 4 years ago
I agree to that solution. Accepting a string in place of the module was meant for convenience, not to complicate static typechecking. I think nothing depends on this particular current behavior. Please go ahead and change it as you proposed.
Currently if you call
typechecked
on a string module name, it has case-by-case behavior to sometimes return the original string and sometimes return the resolved module:Could we simplify to make it unconditionally return the value that was passed in, str→str, module→module, class→class, etc?