Skip to content

Commit 5f983a3

Browse files
committed
Fix flake8 failure on style
1 parent ff9bb4e commit 5f983a3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

mypy/test/testpep561.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ class SimpleMsg(Enum):
6262
class NamespaceMsg(Enum):
6363
cfm_beta = ("{tempfile}:4: error: Cannot find implementation or library stub for module named "
6464
"'typedpkg_ns.ns.dne'")
65-
missing_typedpkg_module = ("{tempfile}:3: error: Cannot find implementation or library stub for module named "
66-
"'typedpkg'")
67-
missing_typedpkg_sample_module = ("{tempfile}:2: error: Cannot find implementation or library stub for module named "
68-
"'typedpkg.sample'")
65+
missing_typedpkg_module = ("{tempfile}:3: error: Cannot find implementation or library stub"
66+
" for module named 'typedpkg'")
67+
missing_typedpkg_sample_module = ("{tempfile}:2: error: Cannot find implementation or"
68+
" library stub for module named 'typedpkg.sample'")
6969
help_note2 = ('{tempfile}:2: note: See https://mypy.readthedocs.io/en/latest/'
70-
'running_mypy.html#missing-imports')
70+
'running_mypy.html#missing-imports')
7171
help_note = ('{tempfile}:4: note: See https://mypy.readthedocs.io/en/latest/'
7272
'running_mypy.html#missing-imports')
7373
bool_str = ('{tempfile}:10: error: Argument 1 has incompatible type '
@@ -262,7 +262,7 @@ def test_mypy_path_is_respected(self) -> None:
262262
os.chdir(old_dir)
263263

264264
def test_mypy_nositepackages_setting_accepted(self) -> None:
265-
### Test the no-site-packages flag
265+
# Test the no-site-packages flag
266266
self.simple_prog.create()
267267
with tempfile.TemporaryDirectory() as temp_dir:
268268
old_dir = os.getcwd()
@@ -280,10 +280,10 @@ def test_mypy_nositepackages_setting_accepted(self) -> None:
280280
self.install_package('typedpkg', python_executable)
281281
self.simple_prog.check_mypy_run(
282282
python_executable,
283-
[NamespaceMsg.missing_typedpkg_sample_module,
284-
NamespaceMsg.help_note2,
285-
NamespaceMsg.missing_typedpkg_module,
286-
SimpleMsg.msg_any],
283+
[NamespaceMsg.missing_typedpkg_sample_module,
284+
NamespaceMsg.help_note2,
285+
NamespaceMsg.missing_typedpkg_module,
286+
SimpleMsg.msg_any],
287287
venv_dir=venv_dir,
288288
args=['--config-file', mypy_config_path]
289289
)

0 commit comments

Comments
 (0)