Dima Tisnek
c47650323e
fix: correct headers= kwarg in HTTP[S]Connection ( #12704 )
2024-10-01 08:59:46 +02:00
Justin Su
02b05d67c4
Fix type for FileCookieJar.filename ( #12333 )
2024-07-15 14:30:32 +02:00
Shantanu
d9cf43c4c3
Mark pos-only __class_getitem__ args ( #11970 )
2024-05-18 23:27:51 +02:00
Shantanu
49512463c6
http: add py313 HTTPStatus aliases ( #11935 )
2024-05-18 19:24:44 +02:00
Ali Hamdan
b570af5c1c
stdlib: fix some enum definitions ( #11956 )
2024-05-18 13:03:10 +02:00
Sebastian Rittau
56db30e8eb
Make email.message.Message generic over the header type ( #11732 )
...
Co-authored-by: Avasam <samuel.06@hotmail.com >
2024-04-23 11:41:10 -04:00
Eric Traut
17f1c4628a
Add precise values for enum members where possible ( #11299 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
Co-authored-by: Alex Waygood <alex.waygood@gmail.com >
2024-04-22 15:10:59 +01:00
Andrew
6d9f28a7ca
http.serverBaseHTTPRequestHandler.date_time_string: timestamp is a float ( #11322 )
2024-01-27 12:29:24 +01:00
Sebastian Rittau
53a8193d64
Update typing_extensions imports in stdlib ( #11244 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2024-01-05 08:15:19 -08:00
Sebastian Rittau
23604858a6
Remove Python 3.7 branches ( #11238 )
2024-01-05 11:39:39 +01:00
Avasam
cf6bafbaf2
override http.HTTPMessage methods to only use str for the header type ( #11114 )
2023-12-19 08:37:57 +01:00
Allison Karlitskaya
53d5ee5a78
stdlib: HTTPSConnection(port=) is int|None ( #11058 )
...
Fix an apparent typo in the type of this field.
Closes #11057
2023-11-22 17:20:33 +00:00
Tin Tvrtković
c8073493fc
http.HTTPConnection.putheader tweak ( #10978 )
2023-11-05 15:38:41 -08:00
Denis Laxalde
24712f66a9
Add SimpleHTTPRequestHandler's directory attribute ( #10788 )
2023-09-28 13:20:19 +02:00
Petter Friberg
c9bf034dd4
Make http.cookies.SimpleCookie non-generic ( #10701 )
2023-09-13 12:07:02 +02:00
Petter Friberg
d88398b923
Make value_decode and value_encode of BaseCookie return 2-tuple ( #10702 )
2023-09-13 09:21:25 +02:00
Alex Waygood
a570fb6ced
Fix various stubtest complaints on Python 3.12 ( #10691 )
2023-09-10 14:54:43 -07:00
James Braza
464b71c810
Added url: str to http.client.HTTPResponse ( #10497 )
2023-07-22 01:58:13 +01:00
Nikita Sobolev
8162faa934
Fix signature of http.client.HTTPSConnection for Python 3.12 ( #10392 )
2023-07-01 18:31:47 +01:00
Nikita Sobolev
0b98780c81
Add new http.HTTPStatus/__init__.pyi for Python3.12 ( #10296 )
2023-06-10 10:34:28 +01:00
Alex Waygood
dd2818a41d
Stdlib: add container default values ( #9909 )
2023-03-21 09:12:34 +01:00
Alex Waygood
21d7f7153b
[alt] typing: accept buffers in IO.write ( #9861 )
...
Co-authored-by: JelleZijlstra <jelle.zijlstra@gmail.com >
2023-03-15 00:42:10 -07:00
Alex Waygood
6ba28ae547
Remove unused type: ignore comments ( #9801 )
2023-02-23 12:59:50 -08:00
Alex Waygood
9ed39d8796
Use typing_extensions.Self in the stdlib ( #9694 )
2023-02-09 09:12:13 +00:00
Alex Waygood
33a62ae42d
Add more defaults to the stdlib ( #9606 )
...
Continuing work towards #8988 .
The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are:
- Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine)
- Defaults in non-py311 branches
- Defaults for float parameters
- Defaults for overloads
2023-01-29 01:51:23 +00:00
Jelle Zijlstra
ddfaca3200
stdlib: add argument default values ( #9501 )
2023-01-18 09:37:34 +01:00
Jelle Zijlstra
f64807a468
socketserver: improve bytes handling ( #9096 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-01-12 16:46:20 +00:00
Ethan Furman
3aceb1abd5
Update SimpleHTTPRequestHandler for changes in 3.12 ( #9452 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-01-03 23:59:40 +00:00
Jelle Zijlstra
00483b63e6
http.client.HTTPConnection.request accepts str as the body ( #9322 )
...
See code around ab02262cd0/Lib/http/client.py (L1328)
2022-12-02 10:49:33 -08:00
Alex Waygood
22c5afa2d2
http.server.SimpleHTTPRequestHandler: Fix version branching ( #9075 )
2022-11-03 11:17:50 +01:00
Jelle Zijlstra
6b702452b6
http: improve types ( #9055 )
2022-11-03 09:55:56 +01:00
Nikita Sobolev
0259068ad6
Remove duplicate definitions in sub-classes ( #8594 )
2022-08-26 17:10:55 +02:00
Alex Waygood
553700e355
Move some protocol definitions closer to their usage sites ( #8436 )
2022-07-29 06:26:27 -07:00
Nikita Sobolev
abd893abae
Type http.client.HTTPConnection.sock ( #8386 )
2022-07-26 11:07:54 +02:00
Alex Waygood
6348a58b8b
Import Match and Pattern from re, not typing ( #8277 )
2022-07-12 15:32:48 +02:00
Alex Waygood
edc0ecd857
Remove Python 3.6 branches from typeshed ( #8269 )
2022-07-11 10:55:17 +02:00
Alex Waygood
0cff7fea71
http.cookiejar.MozillaCookieJar.header does not exist in 3.10+ (#8228 )
2022-07-03 09:42:14 -07:00
Alex Waygood
16ca92fac7
Add http.HTTPMethod ( #7784 )
...
https://github.com/python/cpython/pull/91997
`description` isn't actually read-only at runtime, but I don't think there's any other way of telling type checkers "this is an attribute that the members have, not a member itself". And pretending it's a property is already what we do for `HTTPStatus`, which has the same issue.
2022-05-06 23:48:52 -07:00
Alex Waygood
97a74bc1aa
Import from collections.abc wherever possible ( #7635 )
2022-04-18 12:50:37 +02:00
Alex Waygood
740193a8fc
Use TypeAlias where possible for type aliases ( #7630 )
2022-04-15 18:01:00 -07:00
Alex Waygood
340c6c97ed
Add mypy error codes to type: ignores, remove unused ignores ( #7504 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-03-19 13:10:00 +00:00
Alex Waygood
3ab250eec8
Use PEP 604 syntax wherever possible ( #7493 )
2022-03-16 16:01:33 +01:00
Aaron Kau
a3e62d56fc
change Change IO/IOBase.__exit__ return type to None ( #7471 )
2022-03-10 15:57:05 +01:00
Alex Waygood
a0b41959ec
stdlib: fix many attributes which are read-only at runtime but read-write in the stub ( #7395 )
2022-02-27 16:23:09 -08:00
Alex Waygood
240628c4dd
Add missing objects to plistlib, and improve __all__ in asyncio.tasks, http.server, & multiprocessing.__init__ ( #7363 )
2022-02-22 16:39:34 -08:00
Shantanu
09c945b32b
http: make __str__ match runtime def ( #7348 )
...
Co-authored-by: hauntsaninja <>
2022-02-21 17:55:29 -08:00
Alex Waygood
8f2f857ffc
Add __all__ for modules beginning with 'h' and 'i' ( #7327 )
2022-02-20 14:01:45 -08:00
Alex Waygood
fbc279e3f5
stdlib: Add many missing dunder overrides ( #7231 )
2022-02-16 06:25:47 -08:00
Shantanu
b88a6f19cd
Upgrade black version ( #7089 )
2022-01-30 16:27:06 -08:00
Alex Waygood
4e046163b5
Delete many redundant method redefinitions ( #6877 )
2022-01-09 11:21:03 -08:00