SIGN IN SIGN UP

Improve sentinel narrowing (#21844)

Followup to https://github.com/python/mypy/pull/21647

Adjust test case for equality narrowing. That's already implemented, the
test was just using a striped down fixture.
Also add support for narrowing sentinels with `in` and collections
similar to enums.
M
Marc Mueller committed
b4b8d74164a38e0fe2a19f7406d6778fd6c8970d
Parent: 6eb141f
Committed by GitHub <noreply@github.com> on 8/13/2026, 2:21:26 PM