mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Rename Checker::model
to semantic_model
(#4573)
This commit is contained in:
parent
063431cb0f
commit
cbe344f4d5
158 changed files with 1009 additions and 827 deletions
|
@ -261,10 +261,7 @@ impl<'a> SemanticModel<'a> {
|
|||
/// ```
|
||||
///
|
||||
/// ...then `resolve_call_path(${python_version})` will resolve to `sys.version_info`.
|
||||
pub fn resolve_call_path<'b>(&'a self, value: &'b Expr) -> Option<CallPath<'a>>
|
||||
where
|
||||
'b: 'a,
|
||||
{
|
||||
pub fn resolve_call_path(&'a self, value: &'a Expr) -> Option<CallPath<'a>> {
|
||||
let Some(call_path) = collect_call_path(value) else {
|
||||
return None;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue