add some missing constants (#1198)

Closes #2
This commit is contained in:
Jelle Zijlstra
2017-04-24 15:05:02 -07:00
committed by Łukasz Langa
parent 56bc0f5766
commit 6f5c6b5078
3 changed files with 6 additions and 0 deletions

View File

@@ -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]

View File

@@ -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: ...

View File

@@ -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: ...