Currently, builtins.__import__ returns Any in typeshed, while importlib.import_module returns types.ModuleType. They should probably either both return Any, or both return types.ModuleType. I lean towards the latter as more accurate, but the former is less disruptive. Thoughts?
Currently,
builtins.__import__returnsAnyin typeshed, whileimportlib.import_modulereturnstypes.ModuleType. They should probably either both returnAny, or both returntypes.ModuleType. I lean towards the latter as more accurate, but the former is less disruptive. Thoughts?