gh-130415: Narrowing to constants in branches involving `is` comparisons with a constant (GH-143895)

7 files changed