mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-31 00:24:24 +08:00
committed by
Łukasz Langa
parent
56bc0f5766
commit
6f5c6b5078
@@ -38,6 +38,7 @@ class MiniFieldStorage:
|
||||
|
||||
|
||||
class FieldStorage(object):
|
||||
FieldStorageClass = ... # type: Optional[type]
|
||||
keep_blank_values = ... # type: int
|
||||
strict_parsing = ... # type: int
|
||||
qs_on_post = ... # type: Optional[str]
|
||||
|
||||
@@ -4,6 +4,9 @@ from typing import TypeVar, Optional, Dict, Any
|
||||
|
||||
_T = TypeVar('_T')
|
||||
|
||||
# None in CPython but non-None in Jython
|
||||
PyStringMap: Any
|
||||
|
||||
# Note: memo and _nil are internal kwargs.
|
||||
def deepcopy(x: _T, memo: Optional[Dict[int, _T]] = ..., _nil: Any = ...) -> _T: ...
|
||||
def copy(x: _T) -> _T: ...
|
||||
|
||||
@@ -9,6 +9,8 @@ _B = Union[bytes, bytearray]
|
||||
# TODO more precise type for object of hashlib
|
||||
_Hash = Any
|
||||
|
||||
digest_size: None
|
||||
|
||||
if sys.version_info >= (3, 4):
|
||||
def new(key: _B, msg: Optional[_B] = ...,
|
||||
digestmod: Optional[Union[str, Callable[[], _Hash], ModuleType]] = ...) -> HMAC: ...
|
||||
|
||||
Reference in New Issue
Block a user