Use PEP 688 (#10225)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Jelle Zijlstra
2023-05-27 19:55:30 -07:00
committed by GitHub
parent 56aeeb677f
commit c0a0c34020
16 changed files with 80 additions and 64 deletions

View File

@@ -1,4 +1,4 @@
from _typeshed import _BufferWithLen
from _typeshed import SizedBuffer
from typing import IO, Any
from typing_extensions import Literal, TypeAlias
@@ -28,9 +28,9 @@ class openrsrc:
class BinHex:
def __init__(self, name_finfo_dlen_rlen: _FileInfoTuple, ofp: _FileHandleUnion) -> None: ...
def write(self, data: _BufferWithLen) -> None: ...
def write(self, data: SizedBuffer) -> None: ...
def close_data(self) -> None: ...
def write_rsrc(self, data: _BufferWithLen) -> None: ...
def write_rsrc(self, data: SizedBuffer) -> None: ...
def close(self) -> None: ...
def binhex(inp: str, out: str) -> None: ...