File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
crates/ty_python_semantic Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def f(x: int) -> int: ...
2424``` py
2525from overloaded import f
2626
27- # These matches a single overload
27+ # These match a single overload
2828reveal_type(f()) # revealed: None
2929reveal_type(f(1 )) # revealed: int
3030
@@ -52,8 +52,8 @@ def f(x: str) -> str: ...
5252def f (x : bytes ) -> bytes : ...
5353```
5454
55- Here, all of the calls below pass the arity check, so we proceed to type checking which filters out
56- all but the matching overload:
55+ Here, all of the calls below pass the arity check for all overloads , so we proceed to type checking
56+ which filters out all but the matching overload:
5757
5858``` py
5959from overloaded import f
Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ mod tests {
256256 ] ;
257257 let union_type = UnionType :: from_elements ( & db, types) ;
258258 let expanded = expand_type ( & db, union_type) . unwrap ( ) ;
259- assert_eq ! ( expanded. len( ) , 3 ) ;
259+ assert_eq ! ( expanded. len( ) , types . len ( ) ) ;
260260 assert_eq ! ( expanded, types) ;
261261 }
262262
You can’t perform that action at this time.
0 commit comments