propagate narrowed types across functions
Open
needs-discussion
typechecking
typing-spec
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 516
- PR merge metrics
- No merged PRs in 30d
Description
```py
def f(x: object):
assert isinstance(x, int)
def main(x: object):
f(x)
x # object
```
here is would expect `x` to be `int`, if `f` were to be inlined then `x` would be narrowed, so i see no reason why it shouldn't be
Contributor guide
Assessment
This issue has not been assessed yet.