Skip to content

Commit f9b13c7

Browse files
committed
Update test content
1 parent d6dd729 commit f9b13c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/ty_python_semantic/resources/mdtest/call/overloads.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def f(x: int) -> int: ...
2424
```py
2525
from overloaded import f
2626

27-
# These matches a single overload
27+
# These match a single overload
2828
reveal_type(f()) # revealed: None
2929
reveal_type(f(1)) # revealed: int
3030

@@ -52,8 +52,8 @@ def f(x: str) -> str: ...
5252
def 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
5959
from overloaded import f

crates/ty_python_semantic/src/types/call/arguments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)