forked from Firepup650/FireBot
Add normal bytes
doc to the bytes override
This commit is contained in:
parent
31d7d0fabb
commit
8cf9154218
1 changed files with 14 additions and 1 deletions
15
overrides.py
15
overrides.py
|
@ -6,7 +6,20 @@ _T = TypeVar("_T")
|
||||||
|
|
||||||
|
|
||||||
class bytes(bbytes):
|
class bytes(bbytes):
|
||||||
"""Local override of builtin bytes class to add "lazy_decode" """
|
"""Local override of builtin bytes class to add "lazy_decode"
|
||||||
|
|
||||||
|
bytes(iterable_of_ints) -> bytes
|
||||||
|
bytes(string, encoding[, errors]) -> bytes
|
||||||
|
bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer
|
||||||
|
bytes(int) -> bytes object of size given by the parameter initialized with null bytes
|
||||||
|
bytes() -> empty bytes object
|
||||||
|
|
||||||
|
Construct an immutable array of bytes from:
|
||||||
|
- an iterable yielding integers in range(256)
|
||||||
|
- a text string encoded using the specified encoding
|
||||||
|
- any object implementing the buffer API.
|
||||||
|
- an integer
|
||||||
|
"""
|
||||||
|
|
||||||
def __new__(
|
def __new__(
|
||||||
cls: Type[_T],
|
cls: Type[_T],
|
||||||
|
|
Loading…
Reference in a new issue