shawnbrown
ea6dac40d4
sqlite3: handle return-type with factory argument. ( #11571 )
2024-03-13 09:14:08 +01:00
Sebastian Rittau
4c5c5760cf
email.message: Allow any header value ( #11574 )
2024-03-11 17:47:00 -04:00
Avasam
1a942aa36d
Replace Flake8 checks with Ruff (except for flake8-pyi) ( #11496 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-03-10 14:35:45 +00:00
Avasam
da69247514
Code improvements from new Ruff checks ( #11498 )
2024-02-28 22:30:18 -08:00
Jelle Zijlstra
e5d25a7605
importlib.metadata: Improve and test SimplePath protocol ( #11436 )
...
Co-authored-by: layday <layday@protonmail.com >
2024-02-18 00:36:01 -08:00
Nikita Sobolev
863d22a239
Make return type of functools.cache_property covariant ( #10053 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-02-17 15:38:46 -08:00
plokmijnuhby
c5c2c14db9
builtins: Fix typing of reversed ( #10655 )
2024-02-16 06:52:58 -08:00
Sebastian Rittau
4664986cea
Turn TextIOWrapper(buffer) into a protocol ( #11420 )
2024-02-14 19:49:28 +01:00
Alex Waygood
c49c84f319
A new shade of Black ( #11362 )
2024-02-04 16:38:55 -08:00
Shantanu
21f84d09c3
concurrent.futures: allow as_completed to act covariantly ( #11291 )
2024-01-30 20:14:29 -08:00
Akuli
02e19d6e2d
tkinter: font size must be integer ( #11295 )
2024-01-21 02:10:29 +01:00
Karim Baidar
cfb16543b8
Implement Preset Argument in tarfile.open Function and Add Test Coverage ( #11251 )
2024-01-15 16:39:31 +01:00
Sebastian Rittau
1b471a9a0a
Update typing_extensions imports in infrastructure and tests ( #11243 )
2024-01-05 13:30:45 +00:00
Sebastian Rittau
23604858a6
Remove Python 3.7 branches ( #11238 )
2024-01-05 11:39:39 +01:00
Sebastian Rittau
4e5f7a7142
Drop support for Python 3.7 ( #11234 )
2024-01-04 14:48:44 +01:00
Sebastian Rittau
fdc195465b
Add tests for TestCase.assertDictEqual() ( #11154 )
2023-12-12 16:41:18 +01:00
Akuli
51ec2f0900
tkinter: Use a TypeVarTuple in .after() and .after_idle() methods ( #11014 )
2023-12-08 23:00:13 +00:00
Alex Waygood
09668963a1
Make itertools.starmap covariant ( #11037 )
2023-11-29 11:10:26 +00:00
Alex Waygood
01432805d9
Fix typos in docs and comments ( #11064 )
2023-11-23 14:55:58 +00:00
Alex Waygood
4982061ab3
Make itertools.groupby covariant ( #11032 )
2023-11-17 12:33:14 +01:00
Alex Waygood
4aae235cef
Add the nth_combination itertools recipe as a test case ( #11031 )
2023-11-15 20:14:21 +01:00
Alex Waygood
968e2be4d6
Add several itertools recipes to the test_cases directory ( #10992 )
2023-11-15 16:29:48 +01:00
Alex Waygood
3f887d5852
Bump mypy to 1.7.0 ( #11010 )
2023-11-10 15:13:42 +00:00
Sebastian Rittau
f7aa7b709a
Improve regression test documentation ( #10935 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-10-29 10:07:17 +00:00
Sebastian Rittau
1c184fea33
Simplify Traversable signature ( #10934 )
...
Simplify Traversable.open() signature. This is necessary so that implentors can
reasonanbly implement this method. For example `zipfile.Path.open()` (which
is considered a `Traversable`) only supports this subset.
Make `Traversable.__truediv__` and `joinpath` arguments pos-only. The
arguments are named differently in both `pathlib.Path` and `zipfile.Path`.
2023-10-27 00:50:11 +02:00
Avasam
35873ec3d8
Doc: Use proper name capitalization of tooling (Ruff, Black, Flake8) ( #10913 )
2023-10-18 23:46:53 +01:00
James Hilton-Balfe
25eb99cbec
Add better types for asyncio.gather ( #9678 )
2023-10-04 10:10:41 +01:00
Akuli
fbd7963fd6
Delete tkinter._ExceptionReportingCallback ( #10689 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-09-12 20:16:47 +03:00
Alex Waygood
23249c07a9
Update enum for py312 ( #10670 )
2023-09-11 11:26:18 +01:00
Alex Waygood
6eec191739
Improve the accuracy of (default)dict.__(r)or__ ( #10679 )
2023-09-08 11:22:17 +01:00
Shantanu
4df9634427
Remove pathlib.PurePath.__eq__ ( #10662 )
...
Fixes #10661
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-09-07 00:40:24 -07:00
Alex Waygood
ef758b66c0
Bump mypy to 1.5.1 ( #10559 )
2023-08-16 12:18:31 -07:00
Sebastian Rittau
7ea173c4ad
Fix @patch when new is missing ( #10459 )
2023-07-14 12:53:13 +02: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
8ec2323c0a
Replace static assertion that fails with pyright ( #10335 )
...
See https://github.com/python/typeshed/pull/10325#issuecomment-1598684045
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-06-20 14:56:14 +01:00
Shantanu
9e86c6026a
unittest.mock: use ParamSpec in patch ( #10325 )
...
Fixes #10324
2023-06-20 13:48:49 +02:00
Sebastian Rittau
5f9d05c7f5
TemporaryFile(): Handle one more case correctly ( #10284 )
2023-06-14 05:33:01 -07:00
Alex Waygood
d1bfd08b4b
Allow passing multiprocessing.Queues to QueueListener/QueueHandler ( #10169 )
2023-05-10 17:06:41 +02:00
Wesley Collin Wright
cedf3b5684
stdlib/xml: fix return types for toxml/toprettyxml methods ( #10061 )
2023-04-22 16:36:57 -06:00
Akuli
03b8c60a02
Support dict(foo.split() for foo in bar) with bytes ( #10072 )
2023-04-22 18:28:34 +03:00
Alex Waygood
21d7f7153b
[alt] typing: accept buffers in IO.write ( #9861 )
...
Co-authored-by: JelleZijlstra <jelle.zijlstra@gmail.com >
2023-03-15 00:42:10 -07:00
Thomas M Kehrenberg
d76259a062
Add __name__ to _Wrapped in functools ( #9835 )
2023-03-03 15:02:51 +00:00
Thomas M Kehrenberg
40d853cbe2
Add __set__ to functools.cached_property ( #9762 )
2023-02-20 12:36:45 +00:00
Alex Waygood
4ca0c48425
Improve the first overload of is_dataclass ( #9758 )
2023-02-19 06:26:11 -08:00
Avasam
965b3108fe
Further improve and simplify pyright configuration ( #9714 )
2023-02-12 22:42:23 +01:00
Alex Waygood
8e7b78a8e8
Bump black to 23.1.0 ( #9647 )
2023-02-01 06:06:04 -08:00
Alex Waygood
9e71de0421
Improve several stdlib setdefault methods ( #9612 )
2023-01-31 15:39:24 -08:00
Alex Waygood
32ebe323f5
Use a TypeGuard for dataclasses.is_dataclass(); refine asdict(), astuple(), fields(), replace() ( #9362 )
2023-01-28 15:14:22 +00:00
Alex Waygood
7f986bdf85
Add more overloads to the re stubs to help out pyright ( #9592 )
2023-01-27 18:32:50 -08:00
Joshua Bronson
1ba0c9815e
Fix false positive with calling .register() on KeysView subclass ( #9348 )
...
* Revert "`Collection` is `Sized` (#8977 )"
This reverts commit 5bbba5d008 .
* Revert "typing: remove metaclass from Sized (#9058 )"
This reverts commit a3ce512095 .
* Add regression test for issue 9296.
2022-12-10 10:09:28 -08:00