Skip to content

Commit 75914fb

Browse files
committed
Minor style changes
1 parent b731c73 commit 75914fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/functional/i/inconsistent/inconsistent_returns_noreturn.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
#pylint: disable=missing-docstring, invalid-name
21
"""Testing inconsistent returns involving typing.NoReturn annotations."""
2+
# pylint: disable=missing-docstring, invalid-name
33

44
import sys
55
import typing
66

7-
def parser_error(msg) -> typing.NoReturn: #pylint:disable=unused-argument
7+
def parser_error(msg) -> typing.NoReturn: # pylint: disable=unused-argument
88
sys.exit(1)
99

10-
def parser_error_nortype(msg): #pylint:disable=unused-argument
10+
def parser_error_nortype(msg): # pylint: disable=unused-argument
1111
sys.exit(2)
1212

1313

1414
from typing import NoReturn # pylint: disable=wrong-import-position
1515

16-
def parser_error_name(msg) -> NoReturn: #pylint:disable=unused-argument
16+
def parser_error_name(msg) -> NoReturn: # pylint: disable=unused-argument
1717
sys.exit(3)
1818

1919
def bug_pylint_4122(s):
@@ -29,7 +29,7 @@ def bug_pylint_4122(s):
2929
except ValueError:
3030
parser_error('parser error')
3131

32-
def bug_pylint_4122_wrong(s): # [inconsistent-return-statements]
32+
def bug_pylint_4122_wrong(s): # [inconsistent-return-statements]
3333
"""
3434
Every returns is not consistent because parser_error_nortype has no type hints
3535
"""

0 commit comments

Comments
 (0)