8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9daa31 commit 1650ae0Copy full SHA for 1650ae0
docs/source/command_line.rst
@@ -448,9 +448,10 @@ potentially problematic or redundant in some way.
448
are when:
449
450
- The function has a ``None`` or ``Any`` return type
451
- - The function has an empty body or a body that is just
452
- ellipsis (``...``). Empty functions are often used for
453
- abstract methods.
+ - The function has an empty body and is marked as an abstract method,
+ is in a protocol class, or is in a stub file
+ - The execution path can never return; for example, if an exception
454
+ is always raised
455
456
Passing in :option:`--no-warn-no-return` will disable these error
457
messages in all cases.
0 commit comments