mirror of https://github.com/astral-sh/ruff
## 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 | ||