Skip to content

Commit 651cf09

Browse files
committed
type categories too
1 parent 63d54f2 commit 651cf09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas-stubs/core/indexes/category.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ from typing_extensions import Self
1313
from pandas._typing import (
1414
S1,
1515
Dtype,
16+
ListLike,
1617
)
1718

1819
class CategoricalIndex(ExtensionIndex[S1], accessor.PandasDelegate):
@@ -23,7 +24,7 @@ class CategoricalIndex(ExtensionIndex[S1], accessor.PandasDelegate):
2324
def __new__(
2425
cls,
2526
data: Iterable[S1] = ...,
26-
categories=...,
27+
categories: ListLike | None = None,
2728
ordered: bool | None = None,
2829
dtype: Dtype | None = None,
2930
copy: bool = False,

0 commit comments

Comments
 (0)