Alex Waygood
89f4dee452
Improve several __hash__ methods ( #8128 )
2022-06-22 11:58:00 +01:00
Sebastian Rittau
9eed3275c3
tabulate: Add maxcolwidths arguments ( #8132 )
2022-06-22 11:48:48 +01:00
Alex Waygood
8826d3a36f
Rename some confusingly named type aliases ( #8129 )
2022-06-21 20:51:05 +01:00
Theo Belaire
73ec67587c
Replace str with bytes for imaplib append and ParseFlags ( #8130 )
...
Last Argument of APPEND
https://github.com/python/cpython/blob/main/Lib/imaplib.py#L1497
https://github.com/python/cpython/blob/main/Lib/imaplib.py#L413
You can see it's parsed with the bytes regex MapCLRF re.compile(br'\r\n|\r|\n')
https://github.com/python/cpython/blob/main/Lib/imaplib.py#L1497
You can see it's parsed with the bytes regex Flags
re.compile(br'.*FLAGS \((?P<flags>[^\)]*)\)')
2022-06-21 12:16:36 -07:00
Alex Waygood
3fe1f5d6c4
requests, regex: use re-exports instead of assignments in a few places (#8127 )
2022-06-21 08:20:13 -07:00
Alex Waygood
67f377898b
Add process_group argument to subprocess.{run, call, check_call, check_output} ( #8125 )
2022-06-21 07:44:20 -07:00
Alex Waygood
0740d1c48e
asyncio.gather: Add overload for if no positional arguments are provided (#8126 )
2022-06-21 15:31:40 +01:00
Alex Waygood
a01e0260b3
Add pipesize argument to subprocess.{run, call, check_call, check_output} ( #8124 )
2022-06-21 05:59:26 -07:00
Alex Waygood
cad42c7c7b
asyncio.gather: Remove default values for return_exceptions: bool overloads (#8123 )
2022-06-21 05:57:06 -07:00
Shantanu
305f10b808
stubtest: per project --ignore-missing-stub ( #8122 )
2022-06-21 05:52:24 -07:00
Alex Waygood
f9e24680c3
Add new-in-3.9 parameters to subprocess.{run, call, check_call, check_output} ( #8071 )
2022-06-21 04:35:50 -07:00
Sebastian Rittau
678c231e5b
Add types for zxcvbn ( #8089 )
2022-06-21 04:34:48 -07:00
Shantanu
7ee3b5672c
Update cachetools to 5.2.* ( #8119 )
2022-06-21 09:02:00 +02:00
Shantanu
b36c7705a7
[stubsabot] Bump pytz to 2022.1 ( #8121 )
...
Co-authored-by: hauntsaninja <>
2022-06-20 22:16:45 -07:00
Shantanu
ec33d7ba87
[stubsabot] Bump editdistance to 0.6.* ( #8120 )
...
Co-authored-by: hauntsaninja <>
2022-06-20 22:16:34 -07:00
Shantanu
a1323510f3
Bump parsimonious to 0.9.* ( #8117 )
2022-06-20 21:38:52 -07:00
Shantanu
6c63c323ae
[stubsabot] Bump humanfriendly to 10.0.* ( #8118 )
...
Co-authored-by: hauntsaninja <>
2022-06-20 21:37:42 -07:00
Shantanu
58d486978e
Bump mysqlclient to 2.1.* ( #8116 )
2022-06-20 21:36:21 -07:00
Shantanu
432fc3ff00
Bump invoke to 1.7.* ( #8111 )
2022-06-20 21:06:53 -07:00
Shantanu
05ac6a7215
Bump waitress to 2.1.* ( #8113 )
2022-06-20 21:06:15 -07:00
KotlinIsland
35a59f6aa7
typing.AwaitableGenerator: add type_check_only (#8115 )
2022-06-20 21:01:09 -07:00
Shantanu
6fd87aca20
[stubsabot] Bump flake8-bugbear to 22.4.25 ( #8112 )
...
Co-authored-by: hauntsaninja <>
2022-06-20 16:29:31 -07:00
Alex Waygood
c6de37df53
Overhaul socket stubs on Windows and MacOS ( #8106 )
...
Reduce the `socket` allowlists for these platforms to a handful of missing constants
2022-06-20 20:11:50 +01:00
Sebastian Rittau
6a64e69054
Update redis stubs to 4.3 ( #8108 )
2022-06-20 12:09:38 -07:00
Alex Waygood
538621e91b
unittest.case: tighter annotations for various assertions (#8077 )
2022-06-20 18:49:57 +02:00
Alex Waygood
bae4fd2209
Upgrade pyright ( #8110 )
2022-06-20 17:07:43 +01:00
Lefteris Karapetsas
01efba913f
dbapi2 set_progress_handler should return integer ( #8109 )
...
dbapi2 set_progress_handler callback should return an int according to the
stdlib documentation: https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.set_progress_handler
Fixes #8105
2022-06-20 13:42:58 +02:00
Shantanu
34579f1edf
socket: add TCP_KEEPALIVE ( #8100 )
...
bpo-34932
Co-authored-by: hauntsaninja <>
2022-06-19 17:57:07 +01:00
Alex Waygood
411d85feeb
socket.AddressFamily: Fix AF_LINK ( #8103 )
...
Slipped through the net in #8099
2022-06-19 09:10:33 +01:00
Shantanu
a9cd83adf9
Silence mysterious 3.10.5 stubtest failure ( #8102 )
...
Fixes #8098 (along with #8099 )
2022-06-19 00:58:43 -07:00
Shantanu
b7f8d847be
socket: consistency between constants and enums ( #8099 )
...
This matches what happens at runtime, from Enum._convert_
Helps with #8098 . Closes #5696 .
2022-06-19 08:57:55 +01:00
Shantanu
64181e8dad
stubtest: use separate table in METADATA.toml ( #8096 )
2022-06-19 00:43:24 -07:00
Shantanu
42409735b2
Bump oauthlib to 3.2.* ( #8081 )
2022-06-18 16:27:10 +02:00
Shantanu
225c14c16f
[stubsabot] Bump Pygments to 2.12.* ( #8093 )
...
Co-authored-by: hauntsaninja <>
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-06-18 08:58:29 +01:00
Shantanu
b7af592718
[stubsabot] Bump paramiko to 2.11.* ( #8091 )
...
Co-authored-by: hauntsaninja <>
2022-06-18 08:51:10 +01:00
Shantanu
5f1f6dc310
redis: remove duplicate allowlist entries ( #8097 )
...
Co-authored-by: hauntsaninja <>
2022-06-18 08:42:07 +01:00
John Villalovos
fc69e0053a
imaplib: fix exception types ( #8095 )
...
Closes #8094
2022-06-17 23:45:10 -07:00
Shantanu
c31baed61d
[stubsabot] add script ( #8035 )
2022-06-17 21:52:36 -07:00
eggplants
c383e95286
Fix box parameter type of Pillow.PIL.Image.paste ( #8090 )
...
When executing `img.paste(cropped, box=(10.5, 10.5))`:
TypeError: 'float' object cannot be interpreted as an integer
So the `box` parameter's type should be not `tuple[float, float]` but `tuple[int, int]`. (same as `_Box`)
2022-06-16 16:50:14 -07:00
Alex Waygood
6b0c8df9ec
Upgrade pyright, improve pyright config files ( #8072 )
2022-06-16 18:50:50 +01:00
Alex Waygood
a2ef47660a
Fix TypeVars in beautifulsoup and SQLAlchemy ( #8087 )
2022-06-16 17:34:27 +02:00
Alex Waygood
43f923b6c2
protobuf: Delete some __new__ and __init__ methods (#8088 )
2022-06-16 17:10:14 +02:00
Alex Waygood
4967c8bc12
redis: fix more unconstrained TypeVars (#8084 )
2022-06-15 10:14:13 -07:00
Alex Waygood
5fa31e6759
Remove mypy error codes from the test_cases directory ( #8083 )
2022-06-15 15:31:45 +01:00
Pierre-Marie de Rodat
640053e8e3
Add stubs for "gdb" ( #8013 )
...
This commit adds type stubs for the "gdb" package, the Python API to
extend GDB (https://sourceware.org/gdb/onlinedocs/gdb/Python-API.html ).
2022-06-14 22:28:54 -07:00
Shantanu
8cac5284ae
[stubsabot] Bump braintree to 4.15.* ( #8080 )
...
Co-authored-by: hauntsaninja <>
2022-06-14 22:04:35 +01:00
Shantanu
2755d8c310
[stubsabot] Bump pyfarmhash to 0.3.* ( #8079 )
...
Co-authored-by: hauntsaninja <>
2022-06-14 22:03:53 +01:00
Shantanu
1fab7f76fb
[stubsabot] Bump ujson to 5.3.* ( #8078 )
...
Co-authored-by: hauntsaninja <>
2022-06-14 21:44:12 +01:00
Prometheus3375
91d6383d9d
Change return type of XMLPullParser.read_events() ( #8076 )
2022-06-14 19:15:29 +01:00
Alex Waygood
01d5e28ff7
Fix miscellaneous invalid TypeVar usages ( #8074 )
2022-06-14 08:48:41 -07:00