We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5da0719 + aec1ea2 commit 22e87e7Copy full SHA for 22e87e7
1 file changed
crates/ty_python_semantic/src/types/call/arguments.rs
@@ -73,7 +73,7 @@ impl<'db> CallArgumentTypes<'db> {
73
.types
74
.values()
75
.exactly_one()
76
- .or(self.types.values().all_equal_value())
+ .or_else(|_| self.types.values().all_equal_value())
77
{
78
return Some(*exact_ty);
79
}
@@ -86,7 +86,7 @@ impl<'db> CallArgumentTypes<'db> {
86
self.types
87
.get(&tcx)
88
.copied()
89
- .or(self.get_default())
+ .or_else(|| self.get_default())
90
.unwrap_or(Type::unknown())
91
92
0 commit comments