[ty] Silence false-positive diagnostics when using typing.Dict or typing.Callable as the second argument to isinstance() by AlexWaygood · Pull Request #21386 · astral-sh/ruff (original) (raw)

@AlexWaygood

…typing.Callableas the second argument toisinstance()`

@AlexWaygood added the ty

Multi-file analysis & type inference

label

Nov 11, 2025

@AlexWaygood @carljm

Co-authored-by: Carl Meyer carl@astral.sh

AlexWaygood added a commit that referenced this pull request

Nov 11, 2025

@AlexWaygood

…ond argument is a typing.py stdlib alias (#21391)

Summary

A followup to #21386

Test Plan

New mdtests added

KotlinIsland pushed a commit to KotlinIsland/basedpython that referenced this pull request

May 1, 2026

@AlexWaygood

…ond argument is a typing.py stdlib alias (#21391)

Summary

A followup to astral-sh/ruff#21386

Test Plan

New mdtests added

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})