Skip to content

Commit e683d19

Browse files
committed
make use of typing_extensions odepend of python version
1 parent b4ee975 commit e683d19

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/core/dtypes/inference.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66
from numbers import Number
77
import re
88
from typing import (
9+
TYPE_CHECKING,
910
Hashable,
1011
Pattern,
1112
)
1213

1314
import numpy as np
1415

1516
from pandas._libs import lib
16-
from pandas._typing import TypeGuard
17+
18+
if TYPE_CHECKING:
19+
from pandas._typing import TypeGuard
1720

1821
is_bool = lib.is_bool
1922

0 commit comments

Comments
 (0)