Skip to content

Commit 9a25e91

Browse files
committed
Use Path and call .parent
1 parent 1c028f7 commit 9a25e91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/test/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from __future__ import annotations
22

33
import os.path
4-
from pathlib import PurePath
4+
from pathlib import Path
55
provided_prefix = os.getenv("MYPY_TEST_PREFIX", None)
66
if provided_prefix:
77
PREFIX = provided_prefix
88
else:
9-
this_file_dir = os.path.dirname(PurePath(__file__))
9+
this_file_dir = (Path(__file__)).resolve().parent
1010
PREFIX = os.path.dirname(os.path.dirname(this_file_dir))
1111

1212
# Location of test data files such as test case descriptions.

0 commit comments

Comments
 (0)