Skip to content
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
72913ac
Merge pull request #1 from python/master
jolaf Mar 11, 2019
7cdc4bf
Making vars argument Optional, as it defaults to None in the code and…
Mar 11, 2019
29037b9
Merge pull request #2 from python/master
jolaf Mar 11, 2019
3eed451
email.charset.SHORTEST, QP, BASE64 are not in the stub for Python 2
Mar 11, 2019
d065fdf
email.mime.application.MIMEApplication expects data to be bytes, whil…
Mar 11, 2019
73e625f
Adding #undocumented as requested by @srittau to fix #2830
Mar 11, 2019
9b26ce8
Merge branch 'master' of https://github.com/python/typeshed into pyth…
Mar 12, 2019
2b67cae
Merge pull request #4 from python/master
jolaf Mar 14, 2019
1ee2bef
Merge pull request #5 from python/master
jolaf Jul 18, 2019
603bf4b
NullTranslations._parse() stub added;
Jul 18, 2019
cb8c3e6
Merge pull request #6 from python/master
jolaf Jul 25, 2019
5dc4d4f
Update stdlib/3/gettext.pyi
jolaf Jul 25, 2019
1304aef
Update stdlib/3/gettext.pyi
jolaf Jul 25, 2019
a0fbaef
Suggestions from @srittau implemented
Jul 25, 2019
1206178
Merge branch 'master' of https://github.com/python/typeshed
Sep 19, 2019
1352f9c
Stubs for maxminddb added, approved by the developer, see https://git…
Sep 19, 2019
edf4dde
Fixed stubs for maxminddb
Sep 19, 2019
e3e3f4e
Fixes stubs for maxminddb
Sep 19, 2019
bf03a3f
Fixed stubs for maxminddb
Sep 19, 2019
5dfb034
Update third_party/3/maxminddb/extension.pyi
jolaf Sep 19, 2019
dfdb48f
Fixed according to suggestions from @srittau
Sep 19, 2019
982394c
Merge branch 'master' of github.com:jolaf/typeshed
Sep 19, 2019
7caba43
Merge pull request #8 from python/master
jolaf Sep 30, 2019
f87389f
Added ConfigParser.BOOLEAN_STATES # Undocumented
Sep 30, 2019
203bbc0
Whitespace fixed for flake8
Sep 30, 2019
fcd2edc
Added stub for urllib.request.proxy_bypass()
Sep 30, 2019
49449e0
Added stub for urllib.request.proxy_bypass()
Sep 30, 2019
25b7dd1
Merge branch 'proxy_bypass'
Sep 30, 2019
0dda34c
Added stub for asyncore.socket_map, undocumented but useful
Sep 30, 2019
8d0732c
Added stub for http.server.BaseHTTPRequestHandler.parse_request(), un…
Sep 30, 2019
dd375cc
Merge branch 'socket_map'
Sep 30, 2019
3d5666b
Merge branch 'parse_request'
Sep 30, 2019
047b17d
Also added stubs for BaseHTTPRequestHandler.weekdayname and monthname
Sep 30, 2019
d0df323
_maptype seems to be incorrect as the keys seem to be file descriptor…
Sep 30, 2019
236a6b4
Merge branch 'socket_map'
Sep 30, 2019
3aaf62b
Merge branch 'parse_request'
Sep 30, 2019
27fdd70
Merge pull request #9 from python/master
jolaf Sep 30, 2019
8b82e59
Merge pull request #10 from python/master
jolaf Oct 3, 2019
c69b5c6
Updated maxminddb stub to v1.5.0
Oct 3, 2019
ccf6733
Fixed according to flake8
Oct 3, 2019
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
5 changes: 3 additions & 2 deletions third_party/3/maxminddb/reader.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
from ipaddress import IPv4Address, IPv6Address

from types import TracebackType
from typing import Any, Mapping, Optional, Sequence, Type, Union
from typing import Any, Mapping, Optional, Sequence, Tuple, Type, Union

class Reader:
closed: bool = ...
def __init__(self, database: bytes, mode: int = ...) -> None: ...
def metadata(self) -> Metadata: ...
def get(self, ip_address: str) -> Optional[Any]: ...
def get(self, ip_address: Union[str, IPv4Address, IPv6Address]) -> Optional[Any]: ...
def get_with_prefix_len(self, ip_address: Union[str, IPv4Address, IPv6Address]) -> Tuple[Optional[Any], int]: ...
def close(self) -> None: ...
def __enter__(self) -> Reader: ...
def __exit__(self, exc_type: Optional[Type[BaseException]] = ..., exc_val: Optional[BaseException] = ..., exc_tb: Optional[TracebackType] = ...) -> None: ...
Expand Down