ruff/crates/ruff_python_stdlib/src
Micha Reiser a6d892b1f4
Split CallPath into QualifiedName and UnqualifiedName (#10210)
## Summary

Charlie can probably explain this better than I but it turns out,
`CallPath` is used for two different things:

* To represent unqualified names like `version` where `version` can be a
local variable or imported (e.g. `from sys import version` where the
full qualified name is `sys.version`)
* To represent resolved, full qualified names

This PR splits `CallPath` into two types to make this destinction clear.

> Note: I haven't renamed all `call_path` variables to `qualified_name`
or `unqualified_name`. I can do that if that's welcomed but I first want
to get feedback on the approach and naming overall.

## Test Plan

`cargo test`
2024-03-04 09:06:51 +00:00
..
builtins.rs List all ipython builtins (#8719) 2023-11-16 19:06:25 +01:00
future.rs Rewrite a variety of .contains() calls as matches! statements (#5432) 2023-06-28 22:42:27 -04:00
identifiers.rs Add an explicit fast path for whitespace to is_identifier_continuation (#9532) 2024-01-16 08:23:43 +00:00
keyword.rs Remove some additional manual iterator matches (#5482) 2023-07-03 16:29:59 +00:00
lib.rs Introduce a ruff_python_semantic crate (#3865) 2023-04-04 16:50:47 +00:00
logging.rs Fix logging rules with whitespace around dot (#6022) 2023-07-24 05:14:48 +00:00
path.rs Add TOML files to SourceType (#6929) 2023-08-28 15:01:48 +00:00
str.rs Slight speed-up for lowercase and uppercase identifier checks (#9798) 2024-02-03 14:40:41 +00:00
sys.rs Use u8 to represent version segments (#7578) 2023-09-21 14:24:51 -04:00
typing.rs Split CallPath into QualifiedName and UnqualifiedName (#10210) 2024-03-04 09:06:51 +00:00