Skip to content

Commit 0fcb8cd

Browse files
committed
Reuse types
1 parent 89dec50 commit 0fcb8cd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pandas/_libs/ops.pyi

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
from typing import (
2+
TYPE_CHECKING,
23
Iterable,
34
Literal,
45
overload,
56
)
67

78
import numpy as np
89

9-
from pandas._typing import (
10-
BinOp,
11-
BoolOp,
12-
npt,
13-
)
10+
if TYPE_CHECKING: # noqa: PYI002
11+
from pandas._typing import (
12+
BinOp,
13+
BoolOp,
14+
npt,
15+
)
1416

1517
def scalar_compare(
1618
values: np.ndarray, # object[:]

0 commit comments

Comments
 (0)