-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a bunch of encodings submodules (#13087)
each file in this set is the exact same
- Loading branch information
Showing
53 changed files
with
1,092 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import codecs | ||
from _codecs import _EncodingMap | ||
from _typeshed import ReadableBuffer | ||
|
||
class Codec(codecs.Codec): | ||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... | ||
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... | ||
|
||
class IncrementalEncoder(codecs.IncrementalEncoder): | ||
def encode(self, input: str, final: bool = False) -> bytes: ... | ||
|
||
class IncrementalDecoder(codecs.IncrementalDecoder): | ||
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ... | ||
|
||
class StreamWriter(Codec, codecs.StreamWriter): ... | ||
class StreamReader(Codec, codecs.StreamReader): ... | ||
|
||
def getregentry() -> codecs.CodecInfo: ... | ||
|
||
decoding_table: str | ||
encoding_table: _EncodingMap |
Oops, something went wrong.