We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a48dd5a commit 70e544bCopy full SHA for 70e544b
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