Add codecs.BOM* constants (#6515)

This commit is contained in:
Akuli authored and GitHub committed 2021-12-06 17:36:09 +02:00
1 parent bc912ea472
commit 08649177f1
2 files changed
+5 -4

No files matched your search

+5
View File
@@ -5,6 +5,11 @@ from abc import abstractmethod
from typing import IO, Any, BinaryIO, Callable, Generator, Iterable, Iterator, Protocol, TextIO, Tuple, Type, TypeVar, overload
from typing_extensions import Literal
BOM32_BE: bytes
BOM32_LE: bytes
BOM64_BE: bytes
BOM64_LE: bytes
# TODO: this only satisfies the most common interface, where
# bytes is the raw form and str is the cooked form.
# In the long run, both should become template parameters maybe?