mirror of
https://github.com/astral-sh/ruff.git
synced 2026-05-06 08:56:57 -04:00
dc4df9c701
## Summary If a `TypeGuard` is being used to narrow a method, we assume that the guard applies to the first argument of the call (e.g., `x` in `f(x)`). But if the call is an unbound method, it needs to be applied to the _second_ argument, as in `C.f(C(), x)`, since the first argument is the receiver.