Skip to content

Conversation

@CodeMan62
Copy link
Contributor

Summary

This PR Removes deprecated UP038 as per instructed in #18727
closes #18727

Test Plan

I have run tests non of them failing

One Question i have is do we have to document that UP038 is removed?

@CodeMan62 CodeMan62 requested a review from AlexWaygood as a code owner July 5, 2025 17:45
@AlexWaygood AlexWaygood added breaking Breaking API change do-not-merge Do not merge this pull request labels Jul 5, 2025
@AlexWaygood
Copy link
Member

AlexWaygood commented Jul 5, 2025

Thanks. Unfortunately we won't be able to merge this until the next minor release (v0.13), as it's a breaking change.

@AlexWaygood AlexWaygood added this to the v0.13 milestone Jul 5, 2025
@CodeMan62
Copy link
Contributor Author

no worries Thanks for letting me know I will fix these failing CI

@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2025

ruff-ecosystem results

Linter (stable)

ℹ️ ecosystem check detected linter changes. (+0 -1 violations, +0 -0 fixes in 1 projects; 54 projects unchanged)

rotki/rotki (+0 -1 violations, +0 -0 fixes)

- rotkehlchen/externalapis/blockscout.py:205:40: UP038 Use `X | Y` in `isinstance` call instead of `(X, Y)`

Changes by rule (1 rules affected)

code total + violation - violation + fix - fix
UP038 1 0 1 0 0

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Rather than removing the rule implementation at all, I think we just want to change the category of the rule to Removed, similar to the changes we made to S320 in #18617. That way it doesn't break the configuration setup of lots of projects. (We can see the effect it currently has from the ecosystem report)

@CodeMan62
Copy link
Contributor Author

CodeMan62 commented Jul 7, 2025

sounds good me 👍 doing it
EDIT:- DONE

@AlexWaygood
Copy link
Member

Wait, the changes you previously had applied to python/py-fuzzer/pyproject.toml looked correct to me 😆 I don't think 2daaf98 was something you needed to do

@CodeMan62
Copy link
Contributor Author

give me 2 mins i am reverting snapshots too i need to do that locally

@CodeMan62
Copy link
Contributor Author

Thanks! I made alot of mistakes here but i am unable to discard snapshot changes

@AlexWaygood AlexWaygood dismissed their stale review July 7, 2025 18:08

Requested changes were made

@AlexWaygood
Copy link
Member

This looks good to me now, but we'll still need to wait for the v0.13 release before merging it :-)

@dhruvmanila dhruvmanila marked this pull request as draft July 10, 2025 06:22
@ntBre ntBre marked this pull request as ready for review September 5, 2025 13:48
@ntBre ntBre changed the base branch from main to brent/0.13.0 September 5, 2025 13:48
@ntBre ntBre changed the title Remove deprecated UP038 [pyupgrade] Remove non-pep604-isinstance (UP038) Sep 5, 2025
@ntBre ntBre merged commit 56ad51f into astral-sh:brent/0.13.0 Sep 5, 2025
35 checks passed
@ntBre ntBre mentioned this pull request Sep 5, 2025
2 tasks
ntBre added a commit that referenced this pull request Sep 8, 2025
## Summary
This PR Removes deprecated UP038 as per instructed in #18727 
closes #18727 
## Test Plan
I have run tests non of them failing 

One Question i have is do we have to document that UP038 is removed?

---------

Co-authored-by: Alex Waygood <[email protected]>
Co-authored-by: Brent Westbrook <[email protected]>
@ntBre ntBre added rule Implementing or modifying a lint rule and removed do-not-merge Do not merge this pull request labels Sep 8, 2025
ntBre added a commit that referenced this pull request Sep 10, 2025
## Summary
This PR Removes deprecated UP038 as per instructed in #18727 
closes #18727 
## Test Plan
I have run tests non of them failing 

One Question i have is do we have to document that UP038 is removed?

---------

Co-authored-by: Alex Waygood <[email protected]>
Co-authored-by: Brent Westbrook <[email protected]>
ntBre added a commit that referenced this pull request Sep 10, 2025
## Summary
This PR Removes deprecated UP038 as per instructed in #18727 
closes #18727 
## Test Plan
I have run tests non of them failing 

One Question i have is do we have to document that UP038 is removed?

---------

Co-authored-by: Alex Waygood <[email protected]>
Co-authored-by: Brent Westbrook <[email protected]>
ntBre added a commit that referenced this pull request Sep 10, 2025
## Summary
This PR Removes deprecated UP038 as per instructed in #18727 
closes #18727 
## Test Plan
I have run tests non of them failing 

One Question i have is do we have to document that UP038 is removed?

---------

Co-authored-by: Alex Waygood <[email protected]>
Co-authored-by: Brent Westbrook <[email protected]>
dcreager added a commit that referenced this pull request Sep 10, 2025
* main: (26 commits)
  Ignore deprecated rules unless selected by exact code (#20167)
  Stabilize adding future import via config option (#20277)
  [`flake8-errmsg`] Stabilize extending `raw-string-in-exception` (`EM101`) to support byte strings (#20273)
  Stabilize the remaining Airflow rules (#20250)
  [`flake8-bugbear`] Stabilize support for non-context-manager calls in `assert-raises-exception` (`B017`) (#20274)
  [`flake8-commas`] Stabilize support for trailing comma checks in type parameter lists (`COM812`, `COM819`) (#20275)
  [`pygrep_hooks`] Stabilize using`AsyncMock` methods in `invalid-mock-access` (`PGH005`) (#20272)
  Stabilize new strategy for classifying imports as first party (#20268)
  [`pylint`] Stabilize ignoring `__init__.py` for `useless-import-alias` (`PLC0414`) (#20271)
  [`pylint`] Stabilize adding U+061C to `bidirectional-unicode` (`PLE2502`) (#20276)
  [`flake8-simplify`] Stabilize fix safety of `multiple-with-statements` (`SIM117`) (#20270)
  Stabilize `pytest-raises-ambiguous-pattern` (`RUF043`) (#20253)
  Stabilize `f-string-number-format` (`FURB116`) (#20247)
  [`pyupgrade`] Remove `non-pep604-isinstance` (`UP038`) (#19156)
  [`pandas-vet`] Remove `pandas-df-variable-name` (`PD901`) (#19223)
  Remove deprecated macOS config file discovery (#19210)
  Stabilize `redundant-none-literal` (`PYI061`) (#20236)
  Stabilize `generic-not-last-base-class` (`PYI059`) (#20246)
  Stabilize `useless-class-metaclass-type` (`UP050`) (#20230)
  Stabilize `os-symlink` (`PTH211`) (#20229)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaking API change rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove deprecated UP038

3 participants