mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-04 22:31:26 +08:00
Add various missing undocumented functions (#4554)
Mostly addresses #2149
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import sys
|
||||
from typing import IO, Any, Callable, Iterable, Iterator, Mapping, Optional, Tuple, Union
|
||||
from typing import IO, Any, Callable, Iterable, Iterator, Mapping, Optional, Tuple, Type, Union
|
||||
|
||||
HIGHEST_PROTOCOL: int
|
||||
if sys.version_info >= (3, 0):
|
||||
DEFAULT_PROTOCOL: int
|
||||
|
||||
bytes_types: Tuple[Type[Any], ...] # undocumented
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
# TODO: holistic design for buffer interface (typing.Buffer?)
|
||||
class PickleBuffer:
|
||||
@@ -179,3 +181,6 @@ if sys.version_info >= (3, 4):
|
||||
STACK_GLOBAL: bytes
|
||||
MEMOIZE: bytes
|
||||
FRAME: bytes
|
||||
|
||||
def encode_long(x: int) -> bytes: ... # undocumented
|
||||
def decode_long(data: bytes) -> int: ... # undocumented
|
||||
|
||||
Reference in New Issue
Block a user