File tree 1 file changed +5
-5
lines changed
tests/functional/i/inconsistent
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- #pylint: disable=missing-docstring, invalid-name
2
1
"""Testing inconsistent returns involving typing.NoReturn annotations."""
2
+ # pylint: disable=missing-docstring, invalid-name
3
3
4
4
import sys
5
5
import typing
6
6
7
- def parser_error (msg ) -> typing .NoReturn : #pylint:disable=unused-argument
7
+ def parser_error (msg ) -> typing .NoReturn : # pylint: disable=unused-argument
8
8
sys .exit (1 )
9
9
10
- def parser_error_nortype (msg ): #pylint:disable=unused-argument
10
+ def parser_error_nortype (msg ): # pylint: disable=unused-argument
11
11
sys .exit (2 )
12
12
13
13
14
14
from typing import NoReturn # pylint: disable=wrong-import-position
15
15
16
- def parser_error_name (msg ) -> NoReturn : #pylint:disable=unused-argument
16
+ def parser_error_name (msg ) -> NoReturn : # pylint: disable=unused-argument
17
17
sys .exit (3 )
18
18
19
19
def bug_pylint_4122 (s ):
@@ -29,7 +29,7 @@ def bug_pylint_4122(s):
29
29
except ValueError :
30
30
parser_error ('parser error' )
31
31
32
- def bug_pylint_4122_wrong (s ): # [inconsistent-return-statements]
32
+ def bug_pylint_4122_wrong (s ): # [inconsistent-return-statements]
33
33
"""
34
34
Every returns is not consistent because parser_error_nortype has no type hints
35
35
"""
You can’t perform that action at this time.
0 commit comments