mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Use Literal type in codecs (#6857)
This commit is contained in:
@@ -5,10 +5,10 @@ from abc import abstractmethod
|
||||
from typing import IO, Any, BinaryIO, Callable, Generator, Iterable, Iterator, Protocol, TextIO, Type, TypeVar, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
BOM32_BE: bytes
|
||||
BOM32_LE: bytes
|
||||
BOM64_BE: bytes
|
||||
BOM64_LE: bytes
|
||||
BOM32_BE: Literal[b"\xfe\xff"]
|
||||
BOM32_LE: Literal[b"\xff\xfe"]
|
||||
BOM64_BE: Literal[b"\x00\x00\xfe\xff"]
|
||||
BOM64_LE: Literal[b"\xff\xfe\x00\x00"]
|
||||
|
||||
# TODO: this only satisfies the most common interface, where
|
||||
# bytes is the raw form and str is the cooked form.
|
||||
|
||||
Reference in New Issue
Block a user