Skip to content

Commit 9b414ee

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f127917 commit 9b414ee

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

mypy/test/testconfigparser.py

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import configparser
2-
from mypy.options import Options
2+
33
from mypy.config_parser import parse_config_file
4+
from mypy.options import Options
45

56

67
def test_parse_files_normalization():
@@ -13,16 +14,10 @@ def test_parse_files_normalization():
1314
parser = configparser.ConfigParser()
1415
parser.read_string(config)
1516

16-
parse_config_file(
17-
options,
18-
lambda: None,
19-
None,
20-
stdout=None,
21-
stderr=None,
22-
)
17+
parse_config_file(options, lambda: None, None, stdout=None, stderr=None)
2318

2419
# Assert that the trailing commas and empty strings are removed
25-
assert options.files == ['file1.py', 'file2.py', 'file3.py']
20+
assert options.files == ["file1.py", "file2.py", "file3.py"]
2621

2722

2823
def test_parse_files_with_empty_strings():
@@ -34,14 +29,7 @@ def test_parse_files_with_empty_strings():
3429
parser = configparser.RawConfigParser()
3530
parser.read_string(config)
3631

37-
parse_config_file(
38-
options,
39-
lambda: None,
40-
None,
41-
stdout=None,
42-
stderr=None,
43-
)
32+
parse_config_file(options, lambda: None, None, stdout=None, stderr=None)
4433

4534
# Assert that empty strings are ignored
4635
assert options.files == ["file1.py", "file2.py"]
47-

0 commit comments

Comments
 (0)