Skip to content

Commit 1b9ba65

Browse files
committed
typeshed os.PathLike is now @runtime_checkable, remove mypy ignore
1 parent 6247a95 commit 1b9ba65

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/_pytest/config/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,7 @@ def _prepareconfig(
305305
) -> "Config":
306306
if args is None:
307307
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]
308+
elif isinstance(args, os.PathLike):
311309
args = [os.fspath(args)]
312310
elif not isinstance(args, list):
313311
msg = "`args` parameter expected to be a list of strings, got: {!r} (type: {})"

0 commit comments

Comments
 (0)