Rename Checker::model to semantic_model (#4573)

This commit is contained in:
Micha Reiser 2023-05-22 15:14:30 +02:00 committed by GitHub
parent 063431cb0f
commit cbe344f4d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
158 changed files with 1009 additions and 827 deletions

View file

@ -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;
};