You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 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#9201.
Let's say we have a function that has no ability to return:
The correct return type for this would be
NoReturn
. However, the autofix for ANN 201, addsNone
here as the return type instead.Ruff Version:
0.1.8
Command:
ruff check . --fix --unsafe-fixes
.The text was updated successfully, but these errors were encountered: