Skip to content

In resolve_qualified_import_name, prefer direct vs. attribute names #10479

@charliermarsh

Description

@charliermarsh

If both import logging and from logging import error are in scope, and the user asks for the symbol logging.error, I think it makes sense to prefer "error" over "logging.error".

Metadata

Metadata

Assignees

No one assigned

    Labels

    internalAn internal refactor or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions