Commit Graph

9216 Commits

Author SHA1 Message Date
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
David Salvisberg
6ddf4647a7 greenlet: Adds missing __version__ variable (#12089) 2024-06-03 14:11:24 +01:00
Ali Hamdan
e285e52e13 mypy_test.py: warn about incompatible python version only on tested files (#12079) 2024-06-01 17:51:57 +01:00
Ali Hamdan
b019e98116 Update shapely enums (#12078) 2024-06-01 07:14:28 -07: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
Ali Hamdan
4269f992f1 Use hyphenated options in black config in pyproject.toml (#12080) 2024-06-01 10:57:45 +01:00
Sebastian Rittau
fcbb142dd6 [requests] Update to 2.32.3 (#12060) 2024-05-31 21:00:43 -07:00
Amin Alaee
9908f60741 enum: Python 3.13 update (#12049) 2024-05-31 20:50:26 -07:00
Oliver Lambson
4b6558c12a add stubs for py-nanoid (#12074)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-05-31 23:02:54 +01:00
Alex Waygood
7e7ffdfd7e pin openpyxl to 3.1.2 (#12072)
helps with #12059
2024-05-31 09:54:06 -07:00
Adam Dangoor
64af79f98b [docker] Annotate Container.stop() (#12052) 2024-05-31 10:30:02 +02:00
Nikita Sobolev
769fea9f10 Bump pynput to 1.7.7 (#12069) 2024-05-31 10:26:27 +02:00
Nikita Sobolev
66c640ece9 Update docker to 7.1.x (#12068) 2024-05-31 08:56:49 +02:00
Peter
3dc74ddf07 [networks] Fix some functions requiring DiGraph objects (#12066) 2024-05-31 00:34:34 +02: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
renovate[bot]
4f3c564206 Update dependency pyright to v1.1.365 (#12058)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-30 07:57:26 +01:00
Ali Hamdan
c82d29fc76 Bump netaddr to version 1.3 (#12057) 2024-05-29 23:10:54 +02:00
Sam Balana
2e83e654b1 Extend itertools.product to 10 arguments (#12023) 2024-05-29 15:15:24 +02:00
David Salvisberg
93b5016a29 reportlab: Add some basic type hints for graphics rendering API (#12051) 2024-05-29 14:38:19 +02:00
Amin Alaee
b45456739a platform, tarfile, io: Python 3.13 updates (#12056) 2024-05-29 14:37:26 +02:00
Adam Dangoor
b2f6e5221b Add types to docker.models.containers.Container.logs (#12044) 2024-05-28 13:55:18 +02:00
Adam Dangoor
41cc4f9ede Add keyword argument types to docker.models.containers.Container.wait() (#12037) 2024-05-27 20:19:29 +03: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
Ali Hamdan
47aeda444b Fix shapely SupportsRead protocol (#12038) 2024-05-26 13:29:02 +02:00
Adam Dangoor
a9a52a0e10 Add return type for Docker Container wait (#12036) 2024-05-26 11:43:31 +02:00
JP Hutchins
9e3fdf4da9 pyserial: serial: serialutil.pyi: fix excuslive float -> bool (#12035) 2024-05-26 11:41:44 +02:00
Ali Hamdan
a83f02c2d9 Add shapely stubs (#12033) 2024-05-25 16:03:34 +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
David Salvisberg
1781cde60a Adds stubs for reportlab (#12013) 2024-05-24 19:05:26 +02: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
ffa0327845 Use macos-12 for stdlib stubtest in CI (#12021) 2024-05-23 15:36:20 -04: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
Sebastian Rittau
f3ca3001ee Update PyMySQL to 1.1.1 (#12001)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-05-23 13:14:43 -04:00
Alex Waygood
4bc70e1e4d Use mypy from git for stdlib stubtest (#12016) 2024-05-23 13:08:18 -04:00
Avasam
c11fc20651 Small fix for pkg_resources StrPath (#12015) 2024-05-23 09:13:53 -07: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
Alex Waygood
909b91ef94 Remove language_version from black hook in .pre-commit-config.yaml (#12009) 2024-05-23 10:18:13 -04:00