Skip to content

Commit d6f01b8

Browse files
simonjayhawkinsTomAugspurger
authored andcommitted
Iterable -> Collection
1 parent 4b61db6 commit d6f01b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/common.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from datetime import datetime, timedelta
1010
from functools import partial
1111
import inspect
12-
from typing import Any, Iterable, TypeVar, Union
12+
from typing import Any, Collection, Iterable, TypeVar, Union
1313

1414
import numpy as np
1515

@@ -273,7 +273,7 @@ def maybe_make_list(obj):
273273
_T = TypeVar("_T")
274274

275275

276-
def maybe_iterable_to_list(obj: Union[Iterable[_T], _T]) -> Union[Iterable[_T], _T]:
276+
def maybe_iterable_to_list(obj: Union[Iterable[_T], _T]) -> Union[Collection[_T], _T]:
277277
"""
278278
If obj is Iterable but not list-like, consume into list.
279279
"""

0 commit comments

Comments
 (0)