Open
Description
Summary
False negatives are understandable here if we can't be sure that an object is a Path
object - but the below false negative seems silly because we are in a situation where we should be even more confident that we have a Path
object!
from pathlib import Path
path = Path()
path.with_suffix("py") # PTH210
Path().with_suffix("py") # no lint
Version
ruff 0.12.3 (5bc81f2 2025-07-11)