mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-20 08:38:26 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -1,21 +1,20 @@
|
||||
import codecs
|
||||
from typing import Tuple
|
||||
|
||||
class IncrementalEncoder(codecs.IncrementalEncoder):
|
||||
def encode(self, input: str, final: bool = ...) -> bytes: ...
|
||||
|
||||
class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
|
||||
@staticmethod
|
||||
def _buffer_decode(__data: bytes, __errors: str | None = ..., __final: bool = ...) -> Tuple[str, int]: ...
|
||||
def _buffer_decode(__data: bytes, __errors: str | None = ..., __final: bool = ...) -> tuple[str, int]: ...
|
||||
|
||||
class StreamWriter(codecs.StreamWriter):
|
||||
@staticmethod
|
||||
def encode(__str: str, __errors: str | None = ...) -> Tuple[bytes, int]: ...
|
||||
def encode(__str: str, __errors: str | None = ...) -> tuple[bytes, int]: ...
|
||||
|
||||
class StreamReader(codecs.StreamReader):
|
||||
@staticmethod
|
||||
def decode(__data: bytes, __errors: str | None = ..., __final: bool = ...) -> Tuple[str, int]: ...
|
||||
def decode(__data: bytes, __errors: str | None = ..., __final: bool = ...) -> tuple[str, int]: ...
|
||||
|
||||
def getregentry() -> codecs.CodecInfo: ...
|
||||
def encode(__str: str, __errors: str | None = ...) -> Tuple[bytes, int]: ...
|
||||
def decode(input: bytes, errors: str | None = ...) -> Tuple[str, int]: ...
|
||||
def encode(__str: str, __errors: str | None = ...) -> tuple[bytes, int]: ...
|
||||
def decode(input: bytes, errors: str | None = ...) -> tuple[str, int]: ...
|
||||
|
||||
Reference in New Issue
Block a user