Skip to content

Conversation

@spencerkclark
Copy link
Contributor

As of pandas 2.0, pd.timedelta_range allows passing a unit argument which controls the underlying precision of the returned timedeltas (link). This PR updates the type stub to reflect this.

  • Tests added: Please use assert_type() to assert the type of any return value
@twoertwein twoertwein merged commit f6dd4a2 into pandas-dev:main Jul 10, 2025
13 checks passed
@twoertwein
Copy link
Member

Thank you @spencerkclark!

@spencerkclark spencerkclark deleted the timedelta_range-unit branch July 10, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants