mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-21 13:04:18 +02:00
Update test_types.py
This commit is contained in:
parent
49d7bc92ff
commit
55e62a0c63
1 changed files with 8 additions and 0 deletions
|
|
@ -256,3 +256,11 @@ class TestFindKwargByType:
|
|||
pass
|
||||
|
||||
assert find_kwarg_by_type(func, SENTINEL) is None # type: ignore
|
||||
|
||||
def test_missing_type_annotation(self):
|
||||
"""Test finding parameter with a missing type annotation."""
|
||||
|
||||
def func(a: int, b, c: str):
|
||||
pass
|
||||
|
||||
assert find_kwarg_by_type(func, str) == "c"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue