In resolve_qualified_import_name
, prefer direct vs. attribute names
#10479
Labels
internal
An internal refactor or improvement
If both
import logging
andfrom logging import error
are in scope, and the user asks for the symbollogging.error
, I think it makes sense to prefer"error"
over"logging.error"
.The text was updated successfully, but these errors were encountered: