Thanks to visit codestin.com
Credit goes to github.com

Skip to content

builtins.__import__ & importlib.import_module should have the same return type #6295

Description

@AlexWaygood

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions