Skip to content

Commit c0f7b2b

Browse files
committed
disable PLC0414
1 parent 883f05e commit c0f7b2b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pandas/_typing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@
8484
NumpySorter = Optional[npt._ArrayLikeInt_co] # type: ignore[name-defined]
8585

8686
if sys.version_info >= (3, 10):
87-
from typing import TypeGuard # pyright: ignore[reportUnusedImport]
87+
from typing import TypeGuard as TypeGuard
8888
else:
89-
from typing_extensions import TypeGuard # pyright: ignore[reportUnusedImport]
89+
from typing_extensions import TypeGuard as TypeGuard
9090

9191
if sys.version_info >= (3, 11):
92-
from typing import Self
92+
from typing import Self as Self
9393
else:
94-
from typing_extensions import Self # pyright: ignore[reportUnusedImport]
94+
from typing_extensions import Self as Self
9595
else:
9696
npt: Any = None
9797
Self: Any = None

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ ignore = [
278278
# "B301", # not yet implemented
279279
# Only works with python >=3.10
280280
"B905",
281+
# allow explicit re-exporting imports in py files
282+
"PLC0414",
281283
# Too many arguments to function call
282284
"PLR0913",
283285
# Too many returns

0 commit comments

Comments
 (0)