Rule proposal: Auto-add -> None
typehint to functions
#8213
Labels
fixes
Related to suggested fixes for violations
-> None
typehint to functions
#8213
I want to create a new Ruff rule that auto-adds
-> None
return type hint to functions when noreturn <value>
statements are present.Clearly there are lots of special cases that need to be handled (
yield
,raise
,@overload
,.pyi
files, etc).What do you think?
I pushed a very eary draft #8212, but no point doing thorough review yet.
The text was updated successfully, but these errors were encountered: