mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
![]() ## Summary There was some narrowing constraints not covered from the previous PR ```py def _(x: object): if (type(y := x)) is bool: reveal_type(y) # revealed: bool ``` Also, refactored a bit ## Test Plan Update type_api.md |
||
---|---|---|
.. | ||
conditionals | ||
assert.md | ||
bool-call.md | ||
boolean.md | ||
isinstance.md | ||
issubclass.md | ||
match.md | ||
post_if_statement.md | ||
truthiness.md | ||
type.md | ||
while.md |