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.
2 parents 2834b39 + 1b9ba65 commit 0fd0e2aCopy full SHA for 0fd0e2a
src/_pytest/config/__init__.py
@@ -305,9 +305,7 @@ def _prepareconfig(
305
) -> "Config":
306
if args is None:
307
args = sys.argv[1:]
308
- # TODO: Remove type-ignore after next mypy release.
309
- # https://github.com/python/typeshed/commit/076983eec45e739c68551cb6119fd7d85fd4afa9
310
- elif isinstance(args, os.PathLike): # type: ignore[misc]
+ elif isinstance(args, os.PathLike):
311
args = [os.fspath(args)]
312
elif not isinstance(args, list):
313
msg = "`args` parameter expected to be a list of strings, got: {!r} (type: {})"
0 commit comments