Skip to content

Commit d12dffe

Browse files
author
MomIsBestFriend
committed
CLN: Use of Iterable from collections.abc instead of typing
1 parent 3577b5a commit d12dffe

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

pandas/_typing.py

+2-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
1+
from collections.abc import Iterable
12
from pathlib import Path
2-
from typing import (
3-
IO,
4-
TYPE_CHECKING,
5-
AnyStr,
6-
Dict,
7-
Iterable,
8-
List,
9-
Optional,
10-
TypeVar,
11-
Union,
12-
)
3+
from typing import IO, TYPE_CHECKING, AnyStr, Dict, List, Optional, TypeVar, Union
134

145
import numpy as np
156

@@ -37,7 +28,6 @@
3728
Ordered = Optional[bool]
3829
JSONSerializable = Union[Scalar, List, Dict]
3930

40-
# use Collection after we drop support for py35
4131
Axes = Iterable
4232

4333
# to maintain type information across generic functions and parametrization

0 commit comments

Comments
 (0)