Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: type. #51

Merged
merged 2 commits into from
Jan 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions turu-snowflake/src/turu/snowflake/features.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
from typing import TypeVar
from typing import Generic, TypeVar

from turu.core.features import _NotSupportFeature
from typing_extensions import Never, TypeAlias

T = TypeVar("T")


class _NotSupportFeatureT(Generic[T]):
pass


try:
import pandas # type: ignore[import] # noqa: F401

Expand Down Expand Up @@ -45,8 +50,8 @@

except ImportError:
USE_PANDERA = False
PanderaDataFrame: TypeAlias = _NotSupportFeature[T] # type: ignore
PanderaDataFrameModel = _NotSupportFeature[T] # type: ignore
PanderaDataFrame: TypeAlias = _NotSupportFeatureT[T] # type: ignore
PanderaDataFrameModel = _NotSupportFeature # type: ignore
GenericPanderaDataFrameModel = TypeVar(
"GenericPanderaDataFrameModel", bound=_NotSupportFeature
)
Expand Down
Loading