Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion mypy/test/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import sys

import pytest
from typing import List, Tuple, Set, Optional, Iterator, Any, Dict, NamedTuple, Union
from typing import Callable, List, Tuple, Set, Optional, Iterator, Any, Dict, NamedTuple, Union

from mypy.test.config import test_data_prefix, test_temp_dir, PREFIX

Expand All @@ -35,6 +35,8 @@ def parse_test_case(case: 'DataDrivenTestCase') -> None:
"""
test_items = parse_test_data(case.data, case.name)
base_path = case.suite.base_path
# this file doesn't type-check on Windows without this line, see #11895
join: Callable[[str, str], str]
if case.suite.native_sep:
join = os.path.join
else:
Expand Down