Skip to content

Commit

Permalink
fix: use List, Dict and Tuple for python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-goodwin committed Apr 20, 2024
1 parent bd80139 commit 71ca607
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/core/test_typing.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Test typing annotations for the model api."""
# pylint:disable=missing-class-docstring,too-few-public-methods
import re
from typing import Any, Dict, NamedTuple, Optional, Type
from typing import Any, Dict, List, NamedTuple, Optional, Tuple, Type

import numpy as np
import pandas as pd
Expand Down Expand Up @@ -495,9 +495,9 @@ class ExampleNamedTuple(NamedTuple):


class SchemaComplexPythonCollectionTypes(pa.DataFrameModel):
list: list[pa.typing.Int32]
dict: dict[str, pa.typing.Int32]
tuple2: tuple[pa.typing.Int32, pa.typing.Int32]
list: List[pa.typing.Int32]
dict: Dict[str, pa.typing.Int32]
tuple2: Tuple[pa.typing.Int32, pa.typing.Int32]
named_tuple: ExampleNamedTuple


Expand Down

0 comments on commit 71ca607

Please sign in to comment.