From 55e62a0c635fbf982a7bf5592f9dbea416cb917c Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Sun, 4 May 2025 14:34:37 -0400 Subject: [PATCH] Update test_types.py --- tests/utilities/test_types.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/utilities/test_types.py b/tests/utilities/test_types.py index ef4c8716d..ffe71f0c2 100644 --- a/tests/utilities/test_types.py +++ b/tests/utilities/test_types.py @@ -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"