Commit Graph

5478 Commits

Author SHA1 Message Date
Nikita Sobolev 2c1db00761 Consistently use Generic as the last base class (#10610) 2023-08-28 10:16:54 +02:00
Dave Halter 40c639fcb0 The name param in asyncio.Task.__init__ is optional (#10615) 2023-08-25 13:42:53 -07:00
CoolCat467 607cee5914 SSL wrap_socket and wrap_bio accept bytes as well (#10590) 2023-08-16 11:23:24 +01:00
Sebastian Rittau 31ae7b13c7 Add _typeshed.sentinel (#10582) 2023-08-16 11:31:05 +02:00
gotyaoi 1afae4e7f0 Changes waitid to return waitid_result | None (#10589)
Fixes #10564
2023-08-16 08:27:20 +01:00
Alex Waygood 74aac1aa89 Don't pretend EnumMeta inherits from ABCMeta (#10577) 2023-08-14 21:59:53 +01:00
Alex Waygood df08fcec5f Improve __(r)or__ signatures for TypedDict classes (#10565) 2023-08-12 18:27:35 +01:00
Nikita Sobolev 1ad381d713 Update sre_parse to 3.12 (#10556) 2023-08-10 12:48:12 +01:00
Nikita Sobolev 19ed22ea60 Update turtle to 3.12 (#10548) 2023-08-10 11:44:14 +01:00
Nikita Sobolev 9d0ed1571f Update ssl to 3.12 (#10547) 2023-08-09 09:18:33 +02:00
Nikita Sobolev 4990da6c60 Update asyncio.base_events for py312 (#10543) 2023-08-08 15:28:36 +01:00
Nikita Sobolev a5783555e8 asyncio.streams: py312 updates (#10542) 2023-08-08 08:33:37 +01:00
Alex Waygood 230a8f7c6c Fix stubtest for Python 3.12.0rc1 (#10541) 2023-08-07 12:41:31 -07:00
kasium ab22048661 py312: Filter(er) might return a LogRecord (#10540)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-08-07 15:30:33 +01:00
Nikita Sobolev 161dd4b34f Update logging for 3.12 (#10538) 2023-08-07 12:02:44 +01:00
Nikita Sobolev 3968308e74 Update asyncio.constants module for python3.12 (#10535) 2023-08-06 15:30:55 +01:00
Nikita Sobolev 86218a52b7 Add get_context methods to asyncio in 3.12 (#10534) 2023-08-06 12:02:48 +01:00
Shane Smiskol 5e2fe131fa Add missing TCP_USER_TIMEOUT to socket module (#10530) 2023-08-04 21:11:14 +01:00
Nikita Sobolev 81d1362247 Fix asyncio.Task.__init__ signature (#10532) 2023-08-04 15:12:51 +02:00
Shantanu 75c71f324e importlib.metadata: add PathDistribution._path (#10528) 2023-08-01 19:43:51 -07:00
Diogo 852882b8bf nargs could be None in argparse.ArgumentParser.add_argument (#10509) 2023-07-26 18:46:40 +01:00
Eugene Toder e86c61da86 More precise overloads for get/pop methods (#10501)
Fixes #10293

Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2023-07-26 16:37:32 +01:00
Sam Bull b325815f44 Fix type of Future._exception (#10502) 2023-07-24 14:49:13 -07:00
Jelle Zijlstra f577c4c133 Update typing_extensions for 4.7.* (#10344) 2023-07-22 12:51:22 +01:00
James Braza 464b71c810 Added url: str to http.client.HTTPResponse (#10497) 2023-07-22 01:58:13 +01:00
Numerlor b3eb4b95a2 Change format_exception_only to work with exception value on first/second arg 2023-07-20 14:44:00 +02:00
Alex Waygood 79e092e133 Add some ruff autofixes to CI (#10458) 2023-07-20 14:41:52 +02:00
Nikita Sobolev d5c137c0fc py312 updates for array (#10483) 2023-07-20 09:38:58 +01:00
Nikita Sobolev 032f9195f9 Add a more precise signature for AsyncMock.reset_mock() (#10481) 2023-07-19 13:25:20 +01:00
Jakob Stadler 7dbbdb0193 Fix namespace argument regression in argparse.parse_args (#10387) 2023-07-19 13:35:23 +02:00
Alex Waygood 1088ab3d93 Improve stubs for classmethod and staticmethod (#10421) 2023-07-19 13:32:04 +02:00
Jisuk Byun 60a95da159 Fix unsound return type hints in urllib module (#10470)
* Fix unsound return type hints in urllib module
Closes #10466

* Fix return type of ftplib.FTP.ntransfercmd
Related to #10466
2023-07-18 17:46:28 +01:00
Nikita Sobolev 95b268999c pdb: py312 updates (#10471) 2023-07-18 17:33:27 +01:00
Bruno Cabral 4088b8425f tkinter: Treeview identifiers can be int (#10468) 2023-07-17 23:45:59 +03:00
Alex Waygood 03b4bb9cce Stdlib: add many missing __hash__ and __eq__ methods (#10464) 2023-07-17 14:21:02 +02:00
Jisuk Byun a04822051f Fix type hints in email module (#10450) 2023-07-17 14:14:28 +02:00
Nikita Sobolev 4a643318ea sqlite3 updates for py312 (#10469) 2023-07-17 12:44:49 +01:00
Nikita Sobolev 57c435cd7e Update pydoc for 3.12 (#10467) 2023-07-16 11:28:56 +01:00
Sebastian Rittau 7ea173c4ad Fix @patch when new is missing (#10459) 2023-07-14 12:53:13 +02:00
Bruno Cabral 1d7f0d087b tkinter: accept Iterable[int] for grid_columnconfigure, grid_rowconfigure (#10455)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2023-07-13 23:38:47 +01:00
Bruno Cabral eba3a4903d Accept ints for tkinter.ttk.Treeview columns (#10456)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2023-07-14 01:29:06 +03:00
Nikita Sobolev 17c0421c29 Adds py3.12 constants to sqlite3 (#10453) 2023-07-13 16:49:34 +01:00
Hood Chatham ad3648dd4e Fix type of linecache.cache (#10447)
An entry of linecache.cache is either a lazy entry or a full entry. The full entries
are typed correctly but the lazy entry is supposed to be a one-tuple consisting of a
function that takes zero arguments and returns either a string or None.
2023-07-13 11:15:15 +02:00
Alex Waygood f2ee9e9368 Stubtest: fixes for py312beta4 (#10449)
* Revert "json: add AttrDict in py312 (#10212)"

This reverts commit 7994f165da.

* TaskGroup updates
2023-07-12 21:21:05 +01:00
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