Skip to content

Commit bc00b8d

Browse files
author
MomIsBestFriend
committed
Applied @simonjayhawkins suggestion
1 parent c5f6418 commit bc00b8d

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

pandas/_typing.py

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

514
import numpy as np
615

@@ -28,7 +37,7 @@
2837
Ordered = Optional[bool]
2938
JSONSerializable = Union[Scalar, List, Dict]
3039

31-
Axes = Iterable
40+
Axes = Collection
3241

3342
# to maintain type information across generic functions and parametrization
3443
_T = TypeVar("_T")

0 commit comments

Comments
 (0)