Commit Graph

6286 Commits

Author SHA1 Message Date
Guo Ci a06e16eae2 [stdlib] Update fromhex method bytes and bytesarray (#15103)
docs:
https://docs.python.org/dev/library/stdtypes.html#bytes.fromhex
https://docs.python.org/dev/library/stdtypes.html#bytearray.fromhex
2025-12-04 11:59:52 -08:00
Sebastian Rittau e56ae65a49 Updates for Python 3.13.10 and 3.14.1 (#15105)
Closes #15104
2025-12-04 11:19:06 -08:00
Doug Hoskisson 11b39b8634 Forbid keyword arguments for certain Mapping methods (#15085) 2025-12-02 10:07:08 +01:00
Guo Ci 1df82ed1bf [ctypes] Add _layout_ attribute for ctypes.Structure (#15091) 2025-12-01 16:33:02 +01:00
Guo Ci 148b8e631d [typing] Add NewType.__name__ attribute (#15092) 2025-11-28 23:12:15 +01:00
Guo Ci 1218f18d89 [zipfile] Add _for_archive method for zipfile.ZipInfo (#15077) 2025-11-24 23:29:31 +01:00
Guo Ci aa70a2fe18 [xml.etree] Add _setroot method to xml.etree.ElementTree.ElementTree (#15078) 2025-11-24 23:15:26 +01:00
Alexandru Mărășteanu 6f7cecb63c [mimetypes] update init functions to accept Iterables of file paths (#15079) 2025-11-24 23:12:29 +01:00
Guo Ci 281be89d67 [stdlib] Add interrupt method for multiprocessing.Process (#15064) 2025-11-24 17:50:35 +01:00
Guo Ci 050ec19526 [stdlib] add multiprocessing.synchronize.SemLock.locked (#15065) 2025-11-24 17:39:19 +01:00
Guo Ci bc805f6bad [multiprocessing] Update BaseListProxy, multiprocessing.managers.list (#15070) 2025-11-24 17:30:50 +01:00
Alexandru Mărășteanu 8dcca56fec [mimetypes] Functions working with files accept Paths (#15071) 2025-11-24 17:07:02 +01:00
Ivan Gonzalez fbcce8e4ec [sqlite3] Support Row type in row_factory and type connection attribute as well (#15073) 2025-11-24 17:02:07 +01:00
Guo Ci c42613e4c4 [stdlib] Add method_calls attribute to NonCallableMock class (#15076) 2025-11-24 16:51:05 +01:00
Guo Ci 8c7256c8fd [stdlib] Add locked method to threading.Condition (#15075)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-11-23 18:28:59 +00:00
Guo Ci ba99abaf21 [stdlib] Correct IllegalMonthError, IllegalWeekdayError type stubs (#15050) 2025-11-18 19:46:39 +00:00
Semyon Moroz 6b4e7f1246 [typing] Deprecate no_type_check_decorator (#15048) 2025-11-18 12:36:48 +01:00
Sebastian Rittau 6387a6f9c1 Remove list return type from _BaseNetwork.hosts (#15047)
Per https://github.com/python/cpython/issues/141497#issuecomment-3546793394

Thanks to serhiy-storchaka for the notification
2025-11-18 02:58:44 -08:00
0az f1f85ee333 [stdlib] asyncio.Runner.run accepts Awaitables on Python 3.14+ (#15046) 2025-11-18 11:53:05 +01:00
Edge-Seven ce2998f285 Fix typo in deprecation message (#15044) 2025-11-18 10:31:21 +01:00
Edgar Ramírez Mondragón 2618e150d0 [stdlib] Add a comment to the alias for the return type of urllib.request.urlopen (#15042) 2025-11-18 08:22:05 +01:00
Sebastian Rittau bbbf7530a9 [subprocess] Remove obsolete comment (#15040) 2025-11-17 13:39:10 +01:00
Sebastian Rittau 58da238f50 [tkinter.constants] Use literal values for boolean constants (#15037) 2025-11-16 17:44:08 +02:00
Guo Ci ebce8d766b [stdlib] Add overloads for sys.intern function for LiteralString inputs (#15034) 2025-11-15 21:44:51 +01:00
Guo Ci 1ef6a70bc1 [stdlib][sys] Change return types to use Literal/LiteralString (#15032) 2025-11-15 17:59:04 +01:00
Semyon Moroz 1dad9a5857 [compression] Add Protocol _Decompressor (#14885) 2025-11-14 22:23:15 +01:00
Guo Ci 684c0a6007 [stdlib] add importlib.util._incompatible_extension_module_restrictions (#15013) 2025-11-14 22:22:41 +01:00
Guo Ci ead68af433 [stdlib] Add HAS_PHA (#15016) 2025-11-14 21:52:29 +01:00
Guo Ci 0244ef7748 [stdlib][os] Change some str types to LiteralString (#15018) 2025-11-14 21:42:26 +01:00
Guo Ci 9309968211 [stdlib] Add __interactivehook__ to sys module (#15024) 2025-11-14 21:39:34 +01:00
Guo Ci 70fee29cc2 [stdlib][threading] Add threading.__excepthook__ (#15023) 2025-11-14 21:39:18 +01:00
Gabe R. c453da93bf Add TypeVars for the Iterators in select.select (#15022) 2025-11-14 21:26:19 +01:00
Semyon Moroz 0c0bad8831 [unittest] Improve annotations of three_way_cmp (#15003) 2025-11-14 17:02:11 +01:00
Guo Ci 904ea9ec02 Add utf8_enabled attribute to IMAP4 class (#15006) 2025-11-09 21:16:47 +00:00
Guo Ci b96b61efad Add blocksize attribute to HTTPConnection class (#15005) 2025-11-09 21:01:50 +00:00
Ravencentric 5aea29705b make stat.FILE_ATTRIBUTE_* available on all platforms (#14866) 2025-11-08 17:43:53 +01:00
Guo Ci f7ff48e6cb sys.monitoring: Add/correct missing items (#14991) 2025-11-07 17:14:58 +01:00
Sebastian Rittau 07b69ab9e9 [uuid] Replace properties with Final fields (#14968) 2025-11-05 14:04:00 +01:00
Michael H 29f78ddcd1 Amend annotation for asyncio.Protocol.__slots__ (#14980) 2025-11-04 17:13:12 -05:00
Semyon Moroz 546dd282c3 [html.parser] Add scripting param for later patch releases (#14979) 2025-11-04 17:37:43 +01:00
Guo Ci 37dceef034 Add locale.localize (#14970) 2025-11-03 19:01:04 +01:00
Sebastian Rittau ce3094cc5e Remove typing._promote (#14958)
Part of #7580
2025-11-03 00:27:19 -08:00
Shantanu f5d7efa8bf Use consistent definition of NotImplementedType (#14971) 2025-11-03 08:51:14 +01:00
Semyon Moroz 5dd19592d3 [parser] Add default values (#14967) 2025-11-02 15:04:16 +01:00
Randolf Scholz 7fde97036f Move NotImplementedType to types.pyi (#14966) 2025-11-02 15:00:52 +01:00
AN Long 4e38fa4a82 Allow None for sub_key in winreg (#14963) 2025-11-01 18:56:31 +01:00
Sebastian Rittau be34e9201d Change type.__dict__ to a proper attribute (#14951) 2025-11-01 03:00:14 +01:00
Doug Hoskisson c72a3e97a3 Don't require IO for redirect_stdout (#14905) 2025-10-30 21:43:29 +01:00
Stan Ulbrych 947ec497ec Remove zlib.ZLIBNG_VERSION Windows requirement (#14947) 2025-10-30 12:49:57 +01:00
Guo Ci 1d548aa889 Add show_flag_values in enum module. (#14928) 2025-10-29 12:17:48 -04:00