Skip to content

Commit 40236fd

Browse files
committed
fix: Py3.8 typing compat.
1 parent 62c6ac6 commit 40236fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/util/test_pydantic_field.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Union
1+
from typing import Dict, List, Union
22

33
from pydantic import BaseModel, Field
44
from typing_extensions import Literal
@@ -59,8 +59,8 @@ def construct_base_open_api() -> OpenAPI:
5959
def test_pydantic_discriminator_schema_generation() -> None:
6060
"""https://github.com/kuimono/openapi-schema-pydantic/issues/8"""
6161

62-
a_kind: dict[str, Union[str, list[str]]] = {"title": "Kind", "type": "string"}
63-
b_kind: dict[str, Union[str, list[str]]] = {"title": "Kind", "type": "string"}
62+
a_kind: Dict[str, Union[str, List[str]]] = {"title": "Kind", "type": "string"}
63+
b_kind: Dict[str, Union[str, List[str]]] = {"title": "Kind", "type": "string"}
6464

6565
if PYDANTIC_V2:
6666
_key_map, json_schema = models_json_schema([(RequestModel, "validation")])

0 commit comments

Comments
 (0)