Skip to content

remove deprecated downcast argument #1127

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 3 commits into from
Feb 20, 2025

Conversation

MarcoGorelli
Copy link
Member

@MarcoGorelli MarcoGorelli commented Feb 20, 2025

  • Closes #xxxx (Replace xxxx with the Github issue number)
  • Tests added: Please use assert_type() to assert the type of any return value

I was going to tighten the annotations on downcast, but then noticed that it's deprecated across all of these functions
As far as I understand, the pandas-stubs policy is to remove deprecated arguments, to nudge people towards away from deprecated calls

The deprecated decorator has been brought up, but as far as I can tell that only applies to deprecated functions, rather than to single arguments https://peps.python.org/pep-0702/

@MarcoGorelli MarcoGorelli force-pushed the remove-deprecated-downcast branch from 7b1fde3 to 8e37f80 Compare February 20, 2025 11:06
@MarcoGorelli MarcoGorelli marked this pull request as ready for review February 20, 2025 11:16
Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

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

thanks @MarcoGorelli

@Dr-Irv Dr-Irv merged commit 757e34e into pandas-dev:main Feb 20, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants