mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Switch to PEP-604 syntax in python2 stubs (#5915)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
from typing import BinaryIO, Optional, Text, Union
|
||||
from typing import BinaryIO, Text, Union
|
||||
|
||||
_File = Union[Text, BinaryIO]
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
def encode(in_file: _File, out_file: _File, name: Optional[str] = ..., mode: Optional[int] = ...) -> None: ...
|
||||
def decode(in_file: _File, out_file: Optional[_File] = ..., mode: Optional[int] = ..., quiet: int = ...) -> None: ...
|
||||
def encode(in_file: _File, out_file: _File, name: str | None = ..., mode: int | None = ...) -> None: ...
|
||||
def decode(in_file: _File, out_file: _File | None = ..., mode: int | None = ..., quiet: int = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user