Skip to content

ENH: set __module__ for Dtype and Index classes #59909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Prev Previous commit
linting
  • Loading branch information
jorisvandenbossche committed Nov 7, 2024
commit d748d21f0fc69d27e85a396f05dd16bcc48e249c
2 changes: 0 additions & 2 deletions pandas/_libs/interval.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ from pandas._libs.tslibs.util cimport (
is_integer_object,
)

from pandas.util._decorators import set_module

VALID_CLOSED = frozenset(["left", "right", "both", "neither"])


Expand Down
1 change: 1 addition & 0 deletions pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ def _new_Index(cls, d):
d["dtype"] = d["data"].dtype
return cls.__new__(cls, **d)


@set_module("pandas")
class Index(IndexOpsMixin, PandasObject):
"""
Expand Down
4 changes: 1 addition & 3 deletions pandas/core/indexes/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
TypeVar,
)

from pandas.util._decorators import (
cache_readonly,
)
from pandas.util._decorators import cache_readonly

from pandas.core.dtypes.generic import ABCDataFrame

Expand Down