We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16b37c1 commit bda4007Copy full SHA for bda4007
src/python-fastui/tests/test_json_schema_match.py
@@ -27,7 +27,7 @@ def python_model_iter():
27
NULL_TYPE = {'type': 'null'}
28
29
30
-def any_of_simple(any_of: typing.List[typing.Any]) -> typing.List[typing.Any] | None:
+def any_of_simple(any_of: typing.List[typing.Any]) -> typing.Union[typing.List[typing.Any], None]:
31
new_types = []
32
simple = True
33
for s in any_of:
@@ -42,7 +42,7 @@ def any_of_simple(any_of: typing.List[typing.Any]) -> typing.List[typing.Any] |
42
return new_types
43
44
45
-def fix_pydantic_schema(s: typing.Any):
+def fix_pydantic_schema(s: typing.Any) -> None:
46
"""
47
Convert pydantic JSON schema to match `typescript-json-schema`.
48
0 commit comments