mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Enable --disallow-any-generics for stubs (#3288)
This commit is contained in:
committed by
Jelle Zijlstra
parent
23b353303b
commit
c32e1e2280
@@ -45,7 +45,7 @@ def generate_tokens(readline: Callable[[], str]) -> Generator[TokenInfo, None, N
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
from os import PathLike
|
||||
def open(filename: Union[str, bytes, int, PathLike]) -> TextIO: ...
|
||||
def open(filename: Union[str, bytes, int, PathLike[Any]]) -> TextIO: ...
|
||||
else:
|
||||
def open(filename: Union[str, bytes, int]) -> TextIO: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user