Skip to content

add some missing constants #1198

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions stdlib/2and3/cgi.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions stdlib/2and3/copy.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down
2 changes: 2 additions & 0 deletions stdlib/2and3/hmac.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down