Skip to content
Merged
Changes from all commits
Commits
Show all changes
25 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
8d0732c
Added stub for http.server.BaseHTTPRequestHandler.parse_request(), un…
Sep 30, 2019
047b17d
Also added stubs for BaseHTTPRequestHandler.weekdayname and monthname
Sep 30, 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: 4 additions & 1 deletion stdlib/3/http/server.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Stubs for http.server (Python 3.4)

import sys
from typing import Any, BinaryIO, Dict, List, Mapping, Optional, Tuple, Union
from typing import Any, BinaryIO, ClassVar, Dict, List, Mapping, Optional, Sequence, Tuple, Union
import socketserver
import email.message

Expand Down Expand Up @@ -36,6 +36,8 @@ class BaseHTTPRequestHandler:
protocol_version: str
MessageClass: type
responses: Mapping[int, Tuple[str, str]]
weekdayname: ClassVar[Sequence[str]] = ... # Undocumented
monthname: ClassVar[Sequence[Optional[str]]] = ... # Undocumented
def __init__(self, request: bytes, client_address: Tuple[str, int],
server: socketserver.BaseServer) -> None: ...
def handle(self) -> None: ...
Expand All @@ -58,6 +60,7 @@ class BaseHTTPRequestHandler:
def date_time_string(self, timestamp: Optional[int] = ...) -> str: ...
def log_date_time_string(self) -> str: ...
def address_string(self) -> str: ...
def parse_request(self) -> bool: ... # Undocumented

class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
extensions_map: Dict[str, str]
Expand Down