Skip to content

Commit bda4007

Browse files
committed
fix tests for older python
1 parent 16b37c1 commit bda4007

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/python-fastui/tests/test_json_schema_match.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def python_model_iter():
2727
NULL_TYPE = {'type': 'null'}
2828

2929

30-
def any_of_simple(any_of: typing.List[typing.Any]) -> typing.List[typing.Any] | None:
30+
def any_of_simple(any_of: typing.List[typing.Any]) -> typing.Union[typing.List[typing.Any], None]:
3131
new_types = []
3232
simple = True
3333
for s in any_of:
@@ -42,7 +42,7 @@ def any_of_simple(any_of: typing.List[typing.Any]) -> typing.List[typing.Any] |
4242
return new_types
4343

4444

45-
def fix_pydantic_schema(s: typing.Any):
45+
def fix_pydantic_schema(s: typing.Any) -> None:
4646
"""
4747
Convert pydantic JSON schema to match `typescript-json-schema`.
4848
"""

0 commit comments

Comments
 (0)