Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
0875611
1
Parent(s): 4dfc4be
Update test_types.py
Browse files
tests/utilities/test_types.py
CHANGED
|
@@ -256,3 +256,11 @@ class TestFindKwargByType:
|
|
| 256 |
pass
|
| 257 |
|
| 258 |
assert find_kwarg_by_type(func, SENTINEL) is None # type: ignore
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 256 |
pass
|
| 257 |
|
| 258 |
assert find_kwarg_by_type(func, SENTINEL) is None # type: ignore
|
| 259 |
+
|
| 260 |
+
def test_missing_type_annotation(self):
|
| 261 |
+
"""Test finding parameter with a missing type annotation."""
|
| 262 |
+
|
| 263 |
+
def func(a: int, b, c: str):
|
| 264 |
+
pass
|
| 265 |
+
|
| 266 |
+
assert find_kwarg_by_type(func, str) == "c"
|