Skip to content

Commit

Permalink
ENH: set __module__ on timedelta_range (#60267)
Browse files Browse the repository at this point in the history
  • Loading branch information
chanshing authored Nov 11, 2024
1 parent a11fd2e commit 177b952
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pandas/core/indexes/timedeltas.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def inferred_type(self) -> str:
return "timedelta64"


@set_module("pandas")
def timedelta_range(
start=None,
end=None,
Expand Down
1 change: 1 addition & 0 deletions pandas/tests/api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ def test_set_module():
assert pd.Series.__module__ == "pandas"
assert pd.date_range.__module__ == "pandas"
assert pd.bdate_range.__module__ == "pandas"
assert pd.timedelta_range.__module__ == "pandas"
assert pd.NamedAgg.__module__ == "pandas"
assert api.typing.SeriesGroupBy.__module__ == "pandas.api.typing"
assert api.typing.DataFrameGroupBy.__module__ == "pandas.api.typing"

0 comments on commit 177b952

Please sign in to comment.