Skip to content

Apply ruff preview rule RUF046 #10199

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 1 commit into from
Apr 4, 2025
Merged

Conversation

DimitriPapadopoulos
Copy link
Contributor

RUF046 Value being cast to int is already an integer

RUF046 Value being cast to `int` is already an integer
@max-sixty
Copy link
Collaborator

looks good, thanks!

do we want to set the rule to be applied in our configs? or it'll be released soon in ruff already?

@DimitriPapadopoulos
Copy link
Contributor Author

It's a preview rule, I wouldn't recommend applying all preview rules right now.

@dcherian dcherian merged commit 6f354e2 into pydata:main Apr 4, 2025
24 of 31 checks passed
dcherian added a commit to ilan-gold/xarray that referenced this pull request Apr 4, 2025
* main:
  Fix sparse dask repr test (pydata#10200)
  Apply ruff preview rule RUF046 (pydata#10199)
  DOC: Remove mention of netcdf pypi package (pydata#10197)
@DimitriPapadopoulos DimitriPapadopoulos deleted the RUF046 branch April 5, 2025 13:03
Mikejmnez pushed a commit to Mikejmnez/xarray that referenced this pull request Apr 12, 2025
RUF046 Value being cast to `int` is already an integer
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.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy