ruff/crates/ruff_linter
Charlie Marsh 83fe44728b
Match import name ignores against both name and alias (#12033)
## Summary

Right now, it's inconsistent... We sometimes match against the name, and
sometimes against the alias (`asname`). I could see a case for always
matching against the name, but matching against both seems fine too,
since the rule is really about the combination of the two?

Closes https://github.com/astral-sh/ruff/issues/12031.
2024-06-25 18:47:19 -04:00
..
resources Fix RUF027 false positives if `gettext` is imported using an alias (#12025) 2024-06-25 19:10:25 +01:00
src Match import name ignores against both name and alias (#12033) 2024-06-25 18:47:19 -04:00
Cargo.toml Bump version to v0.4.10 (#11953) 2024-06-20 22:37:44 +05:30
__init__.py [`pylint`] (Re-)Implement `import-private-name` (`C2701`) (#9553) 2024-01-16 14:03:11 -05:00