Skip to content

Commit 3e35a09

Browse files
committed
pytester: avoid a type: ignore
1 parent 0cc5229 commit 3e35a09

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/_pytest/pytester.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,10 +1229,9 @@ def parseconfig(self, *args: str | os.PathLike[str]) -> Config:
12291229
"""
12301230
import _pytest.config
12311231

1232-
new_args = self._ensure_basetemp(args)
1233-
new_args = [str(x) for x in new_args]
1232+
new_args = [str(x) for x in self._ensure_basetemp(args)]
12341233

1235-
config = _pytest.config._prepareconfig(new_args, self.plugins) # type: ignore[arg-type]
1234+
config = _pytest.config._prepareconfig(new_args, self.plugins)
12361235
# we don't know what the test will do with this half-setup config
12371236
# object and thus we make sure it gets unconfigured properly in any
12381237
# case (otherwise capturing could still be active, for example)

0 commit comments

Comments
 (0)