Skip to content

Commit 7f24f1b

Browse files
committed
Add type cast
1 parent 3bb2ba0 commit 7f24f1b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

testing_tox/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import re
3131
import sys
3232
import sysconfig
33-
from typing import Iterable
33+
from typing import Iterable, cast
3434

3535
# 3rd party
3636
import pytest
@@ -84,8 +84,9 @@ def prepare_stdout(stdout: str, toxinidir: PathPlus) -> str:
8484
'',
8585
stdout,
8686
)
87+
8788
stdout = stdout.replace(
88-
sysconfig.get_path("stdlib"),
89+
cast(str, sysconfig.get_path("stdlib")),
8990
f"/usr/lib/python{sys.version_info.major}.{sys.version_info.minor}",
9091
)
9192

0 commit comments

Comments
 (0)