Skip to content

Commit 8dc8ef6

Browse files
authored
Merge pull request #51 from yassun7010/fix_type
fix: type.
2 parents 9347c88 + c4a47c6 commit 8dc8ef6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

turu-snowflake/src/turu/snowflake/features.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
from typing import TypeVar
1+
from typing import Generic, TypeVar
22

33
from turu.core.features import _NotSupportFeature
44
from typing_extensions import Never, TypeAlias
55

66
T = TypeVar("T")
77

8+
9+
class _NotSupportFeatureT(Generic[T]):
10+
pass
11+
12+
813
try:
914
import pandas # type: ignore[import] # noqa: F401
1015

@@ -45,8 +50,8 @@
4550

4651
except ImportError:
4752
USE_PANDERA = False
48-
PanderaDataFrame: TypeAlias = _NotSupportFeature[T] # type: ignore
49-
PanderaDataFrameModel = _NotSupportFeature[T] # type: ignore
53+
PanderaDataFrame: TypeAlias = _NotSupportFeatureT[T] # type: ignore
54+
PanderaDataFrameModel = _NotSupportFeature # type: ignore
5055
GenericPanderaDataFrameModel = TypeVar(
5156
"GenericPanderaDataFrameModel", bound=_NotSupportFeature
5257
)

0 commit comments

Comments
 (0)