Commit Graph

5374 Commits

Author SHA1 Message Date
Kirill Podoprigora
1794cfd26e [3.14] Add annotations for `ast.compare` (#12111)
Add annotations for ast.compare
2024-06-07 10:21:54 -06:00
Max Muoto
4da3572827 Add GenericAlias.__(r)or__ (#12105) 2024-06-06 21:57:45 +01:00
Eric Traut
6bb5424ddd Fixed definitions of EnumCheck and FlagBoundary enum members (#12100)
Fixed definitions of EnumCheck and FlagBoundary enum members so they conform to the recently updated typing standard.
2024-06-05 17:19:01 -07:00
Colin Watson
97ccd8985a Tighten annotation of logging.getLevelName (#12088)
To better reflect the implementation's behaviour,
https://github.com/python/typeshed/pull/2730 changed
`logging.getLevelName` to accept `int | str` and return `Any` (the
latter due to the need to avoid union return types).  However, this
isn't ideal if you're passing in an `int`, in which case the
implementation always returns a `str`.  Add overloads for this.
2024-06-04 10:16:53 +02:00
Amin Alaee
124d02034d ast, configparser, glob: Python 3.13 updates (#12050)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-06-01 07:13:10 -07:00
Amin Alaee
9908f60741 enum: Python 3.13 update (#12049) 2024-05-31 20:50:26 -07:00
Amin Alaee
321c0ce75e math, mimetypes, mmap, multiprocessing, sqlite: Python 3.13 updates (#12062) 2024-05-30 14:56:22 +02:00
Amin Alaee
b780ac0ab0 py313: mark Linux-only decimal allowlist entries as unfixable for now (#12061) 2024-05-30 12:44:13 +01:00
Sam Balana
2e83e654b1 Extend itertools.product to 10 arguments (#12023) 2024-05-29 15:15:24 +02:00
Amin Alaee
b45456739a platform, tarfile, io: Python 3.13 updates (#12056) 2024-05-29 14:37:26 +02:00
Amin Alaee
460c35bd6f pathlib: Python3.13 updates (#12048)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-05-27 15:43:15 +01:00
Amin Alaee
05955c0cb8 json, ipaddress, locale: Python3.13 updates (#12046)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-05-27 13:12:00 +01:00
Alex Waygood
de0fc0afb8 traceback: py313 updates (#12032) 2024-05-27 12:56:44 +01:00
muamerp
10bf03bd38 Change type of logging.RotatingFileHandler.maxBytes from str to int (#12045) 2024-05-27 13:34:34 +02:00
Amin Alaee
f9536ec21c time: Python3.13 updates (#12043)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-05-27 10:27:23 +01:00
Neil Girdhar
6246a38e8e Use TypeIs in is_dataclass (#11929) 2024-05-26 13:29:24 +02:00
Alex Waygood
fc33ba67ba builtins: updates for py313 (#12028) 2024-05-24 15:27:15 -04:00
Alex Waygood
966fbfb300 py313: Consolidate _pyrepl allowlist entries (#12031) 2024-05-24 12:24:20 -07:00
Alex Waygood
2985ef414c typing(_extensions) updates for py313 (#12030) 2024-05-24 15:16:15 -04:00
Alex Waygood
0152a6c134 Add __class_getitem__ methods new in py313 (#12029) 2024-05-24 12:11:22 -07:00
Alex Waygood
ac6c61ba04 Stubtest stdlib: unpin 3.11 and 3.12 micro versions (#12022) 2024-05-23 13:24:28 -07:00
Alex Waygood
dccc4e1f07 Run stubtest on py313 with macos and Windows in CI (#12020) 2024-05-23 14:55:15 -04:00
benchatt
044428446f add field deprecated to classes and add_parser for argparse 3.13 (#12019) 2024-05-23 14:47:37 -04:00
benchatt
90f8cfca0b add deprecated=False parameter to more argparse classes for 3.13 (#12018) 2024-05-23 14:13:41 -04:00
benchatt
cf4678c84a Add deprecated parameter to two classes in argparse (#12017) 2024-05-23 13:46:06 -04:00
Alex Waygood
4bc70e1e4d Use mypy from git for stdlib stubtest (#12016) 2024-05-23 13:08:18 -04:00
funkyrailroad
76a42727ab Add datetime __replace__ methods on 3.13+ (#12014) 2024-05-23 11:56:09 -04:00
funkyrailroad
d75a47c2b7 Update BaseException and BaseExceptionGroup for 3.13 (#12010) 2024-05-23 10:44:41 -04:00
Avasam
50cbca413c Make shutil.rmtree.onexc parameter optional (#12002) 2024-05-22 22:41:25 +02:00
Shantanu
c7664eed12 base64: add z85 for py313 (#11976) 2024-05-21 11:30:11 +02:00
Jelle Zijlstra
eeea0ac614 asyncio: fix task factory types (#11993) 2024-05-21 11:18:38 +02:00
Sebastian Rittau
0a95341735 Marked the std streams as possibly be None (#11826) 2024-05-21 08:22:29 +02:00
Avasam
a375953f63 distutils & setuptools: Relax path related params (#11948)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-05-20 23:41:20 -04:00
Alex Waygood
88c7f96d25 Run stubtest on py313 in CI (#11987) 2024-05-20 15:56:41 -04:00
Sebastian Rittau
e2e3750ee9 Move stdlib allowlists to stdlib/@tests (#11982)
Rename py3_common.txt to common.txt
2024-05-20 13:23:02 +02:00
Jelle Zijlstra
3cb7451c99 dis: Update for Python 3.13 (#11985) 2024-05-20 13:02:52 +02:00
Alex Waygood
b8d144d491 Add 3.13 to our CI (#11926) 2024-05-19 16:18:49 -04:00
Shantanu
5445a4a243 csv: update for py313 (#11979) 2024-05-18 22:17:55 -04:00
Shantanu
448870170c stat: fix up (#11977) 2024-05-18 22:16:46 -04:00
Shantanu
5d580629be sys: fix pos-only args (#11978) 2024-05-18 22:14:44 -04:00
Shantanu
2ab710010b shutil: add chown args in py313 (#11973) 2024-05-18 15:09:31 -07:00
Shantanu
68e1396227 re: update for py313 (#11975) 2024-05-18 15:09:21 -07:00
Shantanu
0511881668 queue: add ShutDown to __all__ (#11974) 2024-05-18 18:06:42 -04:00
Shantanu
87edeb65d8 os.path etc: update for py313 (#11965) 2024-05-18 17:57:44 -04:00
Shantanu
2756f16a11 logging: update for py313 (#11972) 2024-05-18 14:49:22 -07:00
Shantanu
70d2c4ec96 statistics: add kde, kde_random in py313 (#11941) 2024-05-18 14:47:20 -07:00
Shantanu
2ae611a9f3 marshal: allow_code in py313 (#11971) 2024-05-18 14:46:59 -07:00
Shantanu
d9cf43c4c3 Mark pos-only __class_getitem__ args (#11970) 2024-05-18 23:27:51 +02:00
Shantanu
69dc8e291a token, tokenize: update for py313 (#11966) 2024-05-18 14:21:29 -07:00
Shantanu
ac38fce019 threading: add new lock methods (#11964) 2024-05-18 16:55:42 -04:00