Eugene Toder
cfc5425cb3
Add defaultdict.__(r)or__; improve ChainMap.__(r)or__ and UserDict.__(r)or__ ( #10427 )
...
Add __or__ to defaultdict
Also, add overloads with Self type to other __[r]or__ methods.
2023-07-11 19:39:12 +01:00
Sebastian Rittau
19992e6212
Mark some errnos as darwin- or solaris-only ( #10440 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-07-11 17:09:40 +01:00
Jisuk Byun
d14ab09375
Fix and comment type mismatches in email library hints ( #10437 )
2023-07-11 00:07:04 -07:00
Alex Waygood
81b8211d0e
Revert "Remove un-needed __hash__ methods from stdlib ( #8465 )" ( #10426 )
...
Reverts https://github.com/python/typeshed/pull/8465
Fixes https://github.com/python/typeshed/issues/10424
Closes https://github.com/python/typeshed/pull/10425
https://github.com/python/typeshed/pull/8465 caused regressions: see https://github.com/python/typeshed/issues/10424 and https://github.com/python/mypy/issues/13800 . Since it didn't fix any known problems (just some stylistic nits that we had), let's just revert the PR.
2023-07-09 08:43:32 -07:00
Ali Hamdan
aed8c3fe1c
Replace aliases by builtins.* in uuid ( #10422 )
...
These aliases were used because the class has properties called
`int` and `bytes`. I think it is better to use the shadowed types
from the builtins module. This should not change anything from the
type checking side but it improves the IDE experience[^1].
[^1]: I was using uuid recently and the aliases showed up in vscode,
I thought they were uuid special types and had to look in the stub to
know what they are.
2023-07-08 11:58:50 +01:00
Simão Afonso @ Powertools Tech
7646d38302
tkinter: Add missing "angle" argument to Canvas.create_text ( #10404 )
2023-07-04 22:00:48 +03:00
Nikita Sobolev
702226e1fd
Add missing TCP_CONNECTION_INFO to socket module ( #10402 )
2023-07-04 12:32:38 +02:00
Nikita Sobolev
31dca1d660
Update inspect for Python3.12 ( #10398 )
2023-07-03 14:54:19 +02:00
Andrew Sansom
18d45d62aa
Broaden collections.Counter __iadd__, __isubtract__, __iand__, and __ior__ to accept any mapping ( #10397 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-07-03 08:27:17 +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
a8051fb2c4
Add _generate_next_value_ to StrEnum ( #10390 )
...
Fixes https://github.com/python/typeshed/issues/10384
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-07-01 18:28:09 +01:00
Alex Waygood
5ee46bd291
Bump various test dependencies ( #10378 )
2023-06-28 14:22:49 +01:00
Sam Bull
0869b430d6
asyncio: start_tls() can return None (#10346 )
2023-06-28 11:40:19 +01:00
Alex Waygood
1b2e4091db
Bump mypy to 1.4.1 ( #10351 )
2023-06-25 16:45:09 -07:00
Nikita Sobolev
d492efeaea
email.utils.localtime: py312 updates (#10358 )
2023-06-25 12:02:11 +01:00
Sujal Gupta
575dd0c448
Add _file attribute to SpooledTemporaryFile ( #10327 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2023-06-24 17:09:51 +03:00
Anthony Sottile
c1df736a8c
Add _is_text_encoding attribute of CodecInfo (3.4+) ( #10354 )
...
Introduced in https://bugs.python.org/issue19619 . Was meant to be a temporary private API, but no public API has emerged in the years since.
2023-06-23 15:35:33 +01:00
Alex Waygood
4a692fc546
Fix stubtest for py312b3 ( #10343 )
2023-06-21 15:46:50 +01:00
Kirill Podoprigora
f3a0be32fe
Add is_cli param to pydoc.pyi ( #10331 )
2023-06-21 14:58:03 +01:00
James Hilton-Balfe
4cfc49882e
Rename Generator-like type params to be more obvious ( #10330 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-06-21 13:50:33 +01:00
Shantanu
9e86c6026a
unittest.mock: use ParamSpec in patch ( #10325 )
...
Fixes #10324
2023-06-20 13:48:49 +02:00
Shantanu
7114aecf77
inspect: getmodulename takes a PathLike as well as str ( #10329 )
...
Fixes #10328
2023-06-18 21:19:57 +01:00
Jelle Zijlstra
5beddbe883
Add PEP 706 filters to tarfile ( #10316 )
...
Fixes #10315
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2023-06-14 15:08:32 +01:00
Sebastian Rittau
5f9d05c7f5
TemporaryFile(): Handle one more case correctly ( #10284 )
2023-06-14 05:33:01 -07:00
Andrew Sansom
9ca4724204
argparse: Add overloads for arg parser methods ( #10307 )
2023-06-12 18:43:07 +02:00
Nikita Sobolev
75fc33d8d0
Update zoneinfo for Python3.12 ( #10304 )
2023-06-12 12:34:03 +03:00
Oleg Höfling
052d2b9f3a
Fix base class for email.generator.BytesGenerator ( #10299 )
...
And use `Self` as the return type for `email.generator.Generator.clone`.
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com >
2023-06-11 17:02:32 +01:00
Oleg Höfling
c88ce93614
Use Self as the return type for email.policy.Policy.clone ( #10301 )
...
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com >
2023-06-11 16:36:45 +01:00
Alex Waygood
640676bdb2
Mark arguments of typing.NamedTuple.__init__ as positional-only ( #10292 )
2023-06-11 12:28:01 +02:00
Sam Bull
e11dbc20da
Add missing __eq__ to Mapping ( #10297 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-06-10 13:56:08 +01:00
Nikita Sobolev
0b98780c81
Add new http.HTTPStatus/__init__.pyi for Python3.12 ( #10296 )
2023-06-10 10:34:28 +01:00
Nikita Sobolev
0aa5dd57e5
Update ctypes stubs for Python 3.12 ( #10290 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-06-09 19:55:03 +01:00
Nikita Sobolev
1851423519
Fix CI for Python 3.12.0b2 ( #10291 )
2023-06-09 18:17:30 +01:00
Nikita Sobolev
258cabe3a1
Update uuid.pyi for Python3.12 ( #10289 )
2023-06-09 09:33:08 +01:00
Nikita Sobolev
f0e9ec11e4
Add AsyncGeneratorType.ag_suspended ( #10288 )
...
New in Python 3.12
2023-06-09 08:40:23 +01:00
Nikita Sobolev
852ac3efb3
Update _thread.pyi for Python3.12 ( #10285 )
2023-06-08 15:23:57 +02:00
Shantanu
36efbf89ed
ftplib: update for py312 ( #10282 )
2023-06-08 00:57:44 -07:00
Nikita Sobolev
0045299d43
Update token.pyi and tokenize.pyi for Python3.12 ( #10283 )
2023-06-08 08:38:36 +01:00
Nikita Sobolev
8528888691
Update multiprocessing.pyi for Python3.12 ( #10279 )
2023-06-08 08:37:44 +01:00
Nikita Sobolev
23bb0494ab
Update pkgutil.pyi for Python3.12 ( #10281 )
2023-06-08 08:37:15 +01:00
Shantanu
d778855052
webbrowser: update for py312 ( #10280 )
2023-06-08 08:14:10 +01:00
Nikita Sobolev
8eb5751084
Module imp was removed in 3.12 ( #10278 )
2023-06-08 07:49:25 +01:00
Sebastian Rittau
0fe724dfab
Tighten tempfile() return types ( #10232 )
2023-06-07 21:57:13 -07:00
Nikita Sobolev
b0a3917145
Update dis.pyi and opcode.pyi for Python3.12 ( #10276 )
2023-06-07 20:33:50 +01:00
Nikita Sobolev
f10b5fb9b6
Update locale.pyi for Python3.12 ( #10274 )
2023-06-07 19:41:07 +01:00
Shantanu
e1ab1ad2fb
calendar: update for py312 ( #10216 )
2023-06-07 00:52:19 -07:00
Nikita Sobolev
e347af1d59
Update functools.pyi for Python3.12 ( #10269 )
2023-06-06 22:48:36 +01:00
Shantanu
fceb3ae225
argparse: improve add_argument_group and add_mutually_exclusive_group ( #10262 )
2023-06-06 08:27:51 +02:00
Nikita Sobolev
9456f5501b
Update socket stubs for Python3.12 ( #10247 )
...
Docs: https://github.com/python/cpython/blob/3.12/Doc/library/socket.rst
Source: https://github.com/python/cpython/blob/3.12/Modules/socketmodule.c#L8441
2023-06-05 09:32:02 +01:00
Nikita Sobolev
59d08c00d5
Update sys.pyi for Python3.12 ( #10245 )
...
Source: https://github.com/python/cpython/blob/3.12/Python/sysmodule.c
Docs: https://github.com/python/cpython/blob/3.12/Doc/library/sys.rst
2023-06-05 09:07:37 +01:00