|
3 | 3 | from typing import (
|
4 | 4 | TypeVar, Iterator, Iterable, overload,
|
5 | 5 | Sequence, MutableSequence, Mapping, MutableMapping, Tuple, List, Any, Dict, Callable, Generic,
|
6 |
| - Set, AbstractSet, MutableSet, Sized, Reversible, SupportsInt, SupportsFloat, SupportsAbs, |
7 |
| - SupportsRound, IO, Union, ItemsView, KeysView, ValuesView, ByteString |
| 6 | + Set, AbstractSet, MutableSet, Sized, Reversible, SupportsInt, SupportsFloat, SupportsBytes, |
| 7 | + SupportsAbs, SupportsRound, IO, Union, ItemsView, KeysView, ValuesView, ByteString |
8 | 8 | )
|
9 | 9 | from abc import abstractmethod, ABCMeta
|
10 | 10 |
|
@@ -255,6 +255,8 @@ class bytes(ByteString):
|
255 | 255 | def __init__(self, length: int) -> None: ...
|
256 | 256 | @overload
|
257 | 257 | def __init__(self) -> None: ...
|
| 258 | + @overload |
| 259 | + def __init__(self, o: SupportsBytes) -> None: ... |
258 | 260 | def capitalize(self) -> bytes: ...
|
259 | 261 | def center(self, width: int, fillchar: bytes = None) -> bytes: ...
|
260 | 262 | def count(self, x: bytes) -> int: ...
|
|
0 commit comments