Skip to content

Commit 90b1b45

Browse files
author
hauntsaninja
committed
Update tests for PathLike type alias
As a result of python/typeshed#4586
1 parent 3a590b9 commit 90b1b45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mypy/typeanal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
GENERIC_STUB_NOT_AT_RUNTIME_TYPES = {
6060
'queue.Queue',
61-
'builtins._PathLike',
61+
'os.PathLike',
6262
} # type: Final
6363

6464

test-data/unit/cmdline.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ from queue import Queue
10991099
p: PathLike
11001100
q: Queue
11011101
[out]
1102-
test.py:4: error: Missing type parameters for generic type "_PathLike"
1102+
test.py:4: error: Missing type parameters for generic type "PathLike"
11031103
test.py:4: note: Subscripting classes that are not generic at runtime may require escaping, see https://mypy.readthedocs.io/en/latest/common_issues.html#not-generic-runtime
11041104
test.py:5: error: Missing type parameters for generic type "Queue"
11051105
test.py:5: note: Subscripting classes that are not generic at runtime may require escaping, see https://mypy.readthedocs.io/en/latest/common_issues.html#not-generic-runtime

0 commit comments

Comments
 (0)