Skip to content

Commit 7c48b4a

Browse files
committed
Use dirname instead of pathlib.Path
1 parent d0b93b0 commit 7c48b4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def _build(sources: List[BuildSource],
368368

369369
def default_data_dir() -> str:
370370
"""Returns directory containing typeshed directory."""
371-
return str(pathlib.Path(__file__).parent)
371+
return os.path.dirname(__file__)
372372

373373

374374
def mypy_path() -> List[str]:

0 commit comments

Comments
 (0)