Skip to content

Commit f73bfb8

Browse files
author
Sam Goodwin
committed
fix: add List, Dict, Tuple and NamedTuple to the GenericDType bound
1 parent c971c8c commit f73bfb8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pandera/typing/common.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# pylint:disable=abstract-method,too-many-ancestors,invalid-name
33

44
import inspect
5-
from typing import TYPE_CHECKING, Any, Generic, Optional, Type, TypeVar, Union
5+
from typing import TYPE_CHECKING, Any, Generic, Optional, Type, TypeVar, Union, List, Dict, Tuple, NamedTuple, TypedDict
66

77
import pandas as pd
88
import typing_inspect
@@ -59,6 +59,10 @@
5959
int,
6060
str,
6161
float,
62+
List[Any],
63+
Dict[Any, Any],
64+
Tuple[Any],
65+
NamedTuple,
6266
pd.core.dtypes.base.ExtensionDtype,
6367
Bool,
6468
Date,
@@ -101,6 +105,10 @@
101105
int,
102106
str,
103107
float,
108+
List[Any],
109+
Dict[Any, Any],
110+
Tuple[Any],
111+
NamedTuple,
104112
pd.core.dtypes.base.ExtensionDtype,
105113
Bool,
106114
Date,

0 commit comments

Comments
 (0)