@@ -736,8 +736,16 @@ def test_tool_outputs() -> None:
736
736
assert not response .tool_calls
737
737
738
738
739
- @pytest .mark .parametrize ("typed_dict" , [ExtensionsTypedDict , TypingTypedDict ])
740
- @pytest .mark .parametrize ("annotated" , [ExtensionsAnnotated , TypingAnnotated ])
739
+ @pytest .mark .parametrize (
740
+ "typed_dict" ,
741
+ [ExtensionsTypedDict , TypingTypedDict ],
742
+ ids = ["typing_extensions.TypedDict" , "typing.TypedDict" ],
743
+ )
744
+ @pytest .mark .parametrize (
745
+ "annotated" ,
746
+ [ExtensionsAnnotated , TypingAnnotated ],
747
+ ids = ["typing_extensions.Annotated" , "typing.Annotated" ],
748
+ )
741
749
def test__convert_typed_dict_to_openai_function (
742
750
typed_dict : TypeAlias , annotated : TypeAlias
743
751
) -> None :
@@ -989,7 +997,7 @@ class Tool(typed_dict): # type: ignore[misc]
989
997
)
990
998
def test_convert_union_type_py_39 () -> None :
991
999
@tool
992
- def magic_function (value : int | str ) -> str : # type: ignore[syntax,unused-ignore] # noqa: ARG001,FA102
1000
+ def magic_function (value : int | str ) -> str : # noqa: ARG001,FA102
993
1001
"""Compute a magic function."""
994
1002
return ""
995
1003
0 commit comments