Skip to content

Commit 21557ad

Browse files
committed
Make sure add_issue is passed through
1 parent 1b345ac commit 21557ad

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

crates/zuban_python/src/inferred.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,14 +1426,8 @@ impl<'db: 'slf, 'slf> Inferred {
14261426
Generics::from_class_generics(i_s.db, class_ref, &c.generics),
14271427
None,
14281428
);
1429-
if let Some(inf) = potential_descriptor.bind_dunder_get(
1430-
i_s,
1431-
|i| {
1432-
add_issue(i);
1433-
true
1434-
},
1435-
instance,
1436-
) {
1429+
if let Some(inf) = potential_descriptor.bind_dunder_get(i_s, |i| add_issue(i), instance)
1430+
{
14371431
return Some(Some((inf, AttributeKind::Attribute)));
14381432
}
14391433
}
@@ -1754,10 +1748,6 @@ impl<'db: 'slf, 'slf> Inferred {
17541748
.into_maybe_inferred()
17551749
{
17561750
let class_as_inferred = class.as_inferred(i_s);
1757-
let add_issue = |issue| {
1758-
add_issue(issue);
1759-
true
1760-
};
17611751
return Some(Some(inf.execute(
17621752
i_s,
17631753
&CombinedArgs::new(

0 commit comments

Comments
 (0)