We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c028f7 commit 9a25e91Copy full SHA for 9a25e91
mypy/test/config.py
@@ -1,12 +1,12 @@
1
from __future__ import annotations
2
3
import os.path
4
-from pathlib import PurePath
+from pathlib import Path
5
provided_prefix = os.getenv("MYPY_TEST_PREFIX", None)
6
if provided_prefix:
7
PREFIX = provided_prefix
8
else:
9
- this_file_dir = os.path.dirname(PurePath(__file__))
+ this_file_dir = (Path(__file__)).resolve().parent
10
PREFIX = os.path.dirname(os.path.dirname(this_file_dir))
11
12
# Location of test data files such as test case descriptions.
0 commit comments