Skip to content

Adapt to change in behavior of pd.DateOffset in isinstance - #11548

Open
spencerkclark wants to merge 2 commits into
pydata:mainfrom
spencerkclark:fix/DateOffset-isinstance-deprecation
Open

Adapt to change in behavior of pd.DateOffset in isinstance#11548
spencerkclark wants to merge 2 commits into
pydata:mainfrom
spencerkclark:fix/DateOffset-isinstance-deprecation

Conversation

@spencerkclark

Copy link
Copy Markdown
Member

Description

This PR addresses the pandas.errors.Pandas4Warning messages surfaced in #11501 related to a change in behavior of pd.DateOffset in isinstance. The added test ensures that we also do not emit the warning in the cftime_offsets.to_offset function, where we used the same pattern, but no error was surfaced in our current test suite.

Since these are purely internal changes, I do not believe they require a what's new entry.

Checklist

  • Tests added

AI Disclosure

This PR was created without AI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant