Skip to content

Small deprecation cleanups from #11721 - #11724

Merged
headtr1ck merged 3 commits into
pydata:mainfrom
ShinoKana:deprecation-small-cleanups
Oct 14, 2026
Merged

headtr1ck merged 3 commits into
pydata:mainfrom
ShinoKana:deprecation-small-cleanups

Conversation

@ShinoKana

Copy link
Copy Markdown
Contributor

Description

This PR addresses the "Small cleanups" item in #11721. It fixes deprecation warning inconsistencies in reset_encoding and DataTree.lineage, corrects the documented deprecation version of cftime_range, and removes an obsolete warning filter.

Checklist

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.
      Tools: Claude Code
      Prompt: Implement the remaining "Small cleanups" from Tracking: open deprecations #11721, add regression tests, and run the relevant tests and lint checks.

- reset_encoding warned with a plain UserWarning and the wrong version;
  it now uses FutureWarning like the other deprecations, and 2023.10.
- cftime_range's docstring cited 2025.02.0, which was never released.
- Drop the leftover decode_timedelta warnings filter; that change was
  finalized in pydata#11173.
- DataTree.lineage warned twice because it went through iter_lineage.

Co-authored-by: Claude <noreply@anthropic.com>
@welcome

welcome Bot commented Oct 13, 2026

Copy link
Copy Markdown

Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient.
If you have questions, some answers may be found in our contributing guidelines.

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>

@headtr1ck headtr1ck left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, thx!

@headtr1ck
headtr1ck merged commit 7efaa0c into pydata:main Oct 14, 2026
67 of 72 checks passed
@welcome

welcome Bot commented Oct 14, 2026

Copy link
Copy Markdown

Congratulations on completing your first pull request! Welcome to Xarray! We are proud of you, and hope to see you again! celebration gif

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants