Skip to content

Commit 71ca607

Browse files
author
Sam Goodwin
committed
fix: use List, Dict and Tuple for python 3.8
1 parent bd80139 commit 71ca607

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/core/test_typing.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Test typing annotations for the model api."""
22
# pylint:disable=missing-class-docstring,too-few-public-methods
33
import re
4-
from typing import Any, Dict, NamedTuple, Optional, Type
4+
from typing import Any, Dict, List, NamedTuple, Optional, Tuple, Type
55

66
import numpy as np
77
import pandas as pd
@@ -495,9 +495,9 @@ class ExampleNamedTuple(NamedTuple):
495495

496496

497497
class SchemaComplexPythonCollectionTypes(pa.DataFrameModel):
498-
list: list[pa.typing.Int32]
499-
dict: dict[str, pa.typing.Int32]
500-
tuple2: tuple[pa.typing.Int32, pa.typing.Int32]
498+
list: List[pa.typing.Int32]
499+
dict: Dict[str, pa.typing.Int32]
500+
tuple2: Tuple[pa.typing.Int32, pa.typing.Int32]
501501
named_tuple: ExampleNamedTuple
502502

503503

0 commit comments

Comments
 (0)