Skip to content

Commit 6f5c6b5

Browse files
JelleZijlstraambv
authored andcommitted
add some missing constants (#1198)
Closes #2
1 parent 56bc0f5 commit 6f5c6b5

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

stdlib/2and3/cgi.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class MiniFieldStorage:
3838

3939

4040
class FieldStorage(object):
41+
FieldStorageClass = ... # type: Optional[type]
4142
keep_blank_values = ... # type: int
4243
strict_parsing = ... # type: int
4344
qs_on_post = ... # type: Optional[str]

stdlib/2and3/copy.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ from typing import TypeVar, Optional, Dict, Any
44

55
_T = TypeVar('_T')
66

7+
# None in CPython but non-None in Jython
8+
PyStringMap: Any
9+
710
# Note: memo and _nil are internal kwargs.
811
def deepcopy(x: _T, memo: Optional[Dict[int, _T]] = ..., _nil: Any = ...) -> _T: ...
912
def copy(x: _T) -> _T: ...

stdlib/2and3/hmac.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ _B = Union[bytes, bytearray]
99
# TODO more precise type for object of hashlib
1010
_Hash = Any
1111

12+
digest_size: None
13+
1214
if sys.version_info >= (3, 4):
1315
def new(key: _B, msg: Optional[_B] = ...,
1416
digestmod: Optional[Union[str, Callable[[], _Hash], ModuleType]] = ...) -> HMAC: ...

0 commit comments

Comments
 (0)