Skip to content

Commit e455348

Browse files
committed
typing exts
1 parent a16ac9b commit e455348

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

puffin/spec/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
from __future__ import annotations
22

3+
from typing import TYPE_CHECKING
34
from typing import Any
45
from typing import Iterable
56
from typing import Literal
67
from typing import Protocol
78
from typing import TypeVar
89

9-
from typing_extensions import Self
10+
if TYPE_CHECKING:
11+
from typing_extensions import Self
1012

1113

1214
class Expr(Protocol):

t.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# ruff: noqa
22
import polars
33
import pandas as pd
4-
import modin.pandas as mpd
54

65
import puffin
76

8-
df_raw = mpd.DataFrame({"a": [1, 3, 2], "b": [4, 4, 6]})
7+
df_raw = pd.DataFrame({"a": [1, 3, 2], "b": [4, 4, 6]})
98
df, pl = puffin.to_polars_api(df_raw, version="0.20")
10-
df_raw_2 = mpd.DataFrame({"a": [1, 3], "c": [7, 9]})
9+
df_raw_2 = pd.DataFrame({"a": [1, 3], "c": [7, 9]})
1110
df2, pl = puffin.to_polars_api(df_raw_2, version="0.20")
1211

1312
result = df.sort("a", "b")

0 commit comments

Comments
 (0)