Skip to content

Conversation

@danparizher
Copy link
Contributor

Summary

Fixes #19329

@github-actions
Copy link
Contributor

github-actions bot commented Jul 16, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@ntBre ntBre added bug Something isn't working rule Implementing or modifying a lint rule labels Jul 16, 2025
Copy link
Contributor

@ntBre ntBre left a comment

Choose a reason for hiding this comment

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

Thanks! I just had one simplification suggestion by using the typing trait method.

@ntBre ntBre changed the title [flake8_use_pathlib] Fix false negative for PTH210 on direct Path() instantiation with with_suffix [flake8-use-pathlib] Fix false negative on direct Path() instantiation (PTH210) Jul 16, 2025
danparizher and others added 2 commits July 16, 2025 16:30
…pathlib_with_suffix.rs

Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
@ntBre ntBre enabled auto-merge (squash) July 16, 2025 20:40
@ntBre ntBre merged commit 029de78 into astral-sh:main Jul 16, 2025
34 checks passed
@danparizher danparizher deleted the fix-19329 branch July 16, 2025 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False negative for invalid-pathlib-with-suffix (PTH210) if method called on direct instantiation

2 participants