ruff/crates/ruff_python_ast
Charlie Marsh 5ccc21aea2
Add support for NoReturn in auto-return-typing (#9206)
## Summary

Given a function like:

```python
def func(x: int):
    if not x:
        raise ValueError
    else:
        raise TypeError
```

We now correctly use `NoReturn` as the return type, rather than `None`.

Closes https://github.com/astral-sh/ruff/issues/9201.
2023-12-20 00:06:31 -05:00
..
src Add support for NoReturn in auto-return-typing (#9206) 2023-12-20 00:06:31 -05:00
tests New AST nodes for f-string elements (#8835) 2023-12-07 10:28:05 -06:00
Cargo.toml Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00