mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 13:30:49 -05:00
Use smallvec for call path representation (#1960)
This provides a ~10% speed-up for large codebases with `--select ALL`: 
This commit is contained in:
@@ -249,3 +249,13 @@ pub fn is_pep585_builtin(checker: &Checker, expr: &Expr) -> bool {
|
||||
PEP_585_BUILTINS_ELIGIBLE.contains(&call_path.as_slice())
|
||||
})
|
||||
}
|
||||
|
||||
pub enum Callable {
|
||||
ForwardRef,
|
||||
Cast,
|
||||
NewType,
|
||||
TypeVar,
|
||||
NamedTuple,
|
||||
TypedDict,
|
||||
MypyExtension,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user