Ed Younis
3e3fd0dd86
Changed logging.lastResort type to Handler ( #11872 )
2024-05-07 14:55:01 +02:00
Nikita Sobolev
16dadc8fb5
Add show_empty to ast.dump ( #11871 )
2024-05-07 12:42:16 +02:00
Kirill Podoprigora
74486c31a2
[3.13] Add optimize to ast.parse parameters ( #11870 )
2024-05-07 11:23:24 +02:00
Marc Mueller
9178f5a414
Use TypeIs for asyncio function ( #11847 )
2024-04-29 15:17:09 -07:00
Jelle Zijlstra
1dff589dd4
Use TypeIs for various stdlib functions ( #11823 )
2024-04-26 16:43:19 -07:00
Kaleb Barrett
9ca0b20529
Make Awaitable.__await__'s result type's send arg Any ( #11788 )
2024-04-25 07:09:33 -07:00
Patrick Rauscher
71f020d174
add annotation for multiprocessing.{Value,Array} with special c-types ( #11833 )
2024-04-25 12:43:44 +02:00
Anuraag (Rag) Agrawal
273e9ea6dd
Fix comment referencing incorrect type name ( #11832 )
2024-04-24 18:54:17 -07:00
Thanos
aed7081297
Use typing_extensions.Buffer in audioop ( #11831 )
...
More accurate to what audioop actually takes as input in C.
2024-04-24 09:32:30 -07:00
Sebastian Rittau
f646eb86e2
Introduce SupportsContainsAndGetItem ( #11827 )
2024-04-24 16:19:12 +02:00
Alex Waygood
d0f2be92ab
Bump pyright to v1.1.360 ( #11810 )
2024-04-24 14:09:16 +02:00
Sebastian Rittau
7ed91bc2e7
Add _typeshed.MaybeNone as Any trick marker ( #11815 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2024-04-23 17:13:25 -04:00
Sebastian Rittau
56db30e8eb
Make email.message.Message generic over the header type ( #11732 )
...
Co-authored-by: Avasam <samuel.06@hotmail.com >
2024-04-23 11:41:10 -04:00
David Salvisberg
f274c78fe5
Make ExitStack, AbstractContextManager and AsyncAbstractContextManager generic in return type of __exit__ ( #11048 )
2024-04-22 16:43:08 +02:00
Eric Traut
17f1c4628a
Add precise values for enum members where possible ( #11299 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
Co-authored-by: Alex Waygood <alex.waygood@gmail.com >
2024-04-22 15:10:59 +01:00
Kaleb Barrett
ff946a7349
Update Coroutine.cr_frame to return correct type ( #11798 )
...
Update Coroutine.cr_frame to return correct type
2024-04-20 12:51:36 -07:00
Avasam
12b9e48324
Update Ruff and enable F821 in stubs ( #11771 )
2024-04-17 09:50:58 -07:00
Nice Zombies
6e16a4ce23
Fix os.chmod default value ( #11775 )
2024-04-17 02:25:46 -07:00
Bruce Merry
9d234d9c3f
Update asyncio.Stream.readuntil for Python 3.13 ( #11755 )
2024-04-14 14:11:44 +02:00
Avasam
1af2babc03
Allow bytes in winreg.SetValueEx ( #11655 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-04-09 21:25:19 -04:00
bzoracler
bc4b26fbcb
Allow NewType.__supertype__ to also be a NewType ( #11728 )
2024-04-07 06:15:51 -04:00
Ryan McCampbell
5e2f741209
Remove Windows checks from curses ( #11241 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2024-04-06 17:12:48 +03:00
Adam Dangoor
4a33b2f3a0
Add some types for xml.dom.minidom.Text ( #11725 )
2024-04-06 14:45:24 +02:00
layday
a9d644b3ff
Add get_verified_chain and get_unverified_chain for Python 3.13 ( #11724 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-05 19:29:11 +01:00
DetachHead
325577cb76
Update typing_extensions.deprecated decorator to use LiteralString ( #11700 )
2024-04-01 19:02:41 -07:00
Sebastian Rittau
630b49a291
Replace various Incompletes in stdlib ( #11673 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-04-01 15:20:01 +01:00
Sebastian Rittau
027115e624
Remove bare incompletes ( #11670 )
2024-03-30 18:35:57 -07:00
Avasam
6cb57b5f26
traceback: Allow extracted_list params to be an Iterable containing tuples (#11675 )
2024-03-30 18:32:27 -07:00
Eli Skeggs
9965725935
signal: mark sigtimedwait params as positional-only on all versions ( #11658 )
...
At least on Python 3.8.10 and 3.9.18 do not allow keyword arguments.
2024-03-25 22:03:36 -07:00
Alexandru Mărășteanu
4df0725b48
Use Any for field type in make_dataclass ( #11657 )
...
Co-authored-by: Alex Waygood <alex.waygood@gmail.com >
2024-03-25 23:05:14 +00:00
Shantanu
13265a9347
xml: update for security fix ( #11648 )
...
Fixes #11643
2024-03-22 13:07:05 -07:00
Jay Qi
cc5f23ac14
Add init to NameError stub with name keyword argument ( #11627 )
...
Co-authored-by: Jay Qi <jayqi@users.noreply.github.com >
Closes #11626
2024-03-18 12:08:25 -06:00
Avasam
ff7caa30e2
setuptools&distutils: setup returns a Distribution (#11617 )
...
`setup` returns a `Distribution`
2024-03-16 12:06:37 +00:00
Sebastian Rittau
9841c255ee
Replace Any in optparse ( #11599 )
...
Co-authored-by: Ali Hamdan <ali.hamdan.dev@gmail.com >
2024-03-15 22:33:52 +01:00
Ismail S
a20f54663c
Add taskName to LogRecord ( #11609 )
2024-03-15 15:34:13 +01:00
Patrick Rauscher
3d138380c2
Allow slices for SynchronizedArray ( #11573 )
2024-03-15 13:10:16 +01:00
Patrick Rauscher
6943dcd03f
Fix typing of multiprocessing.Value and Array ( #11576 )
2024-03-15 12:50:48 +01:00
renovate[bot]
48106feed7
chore(deps): update pytype and pyright ( #11595 )
2024-03-14 09:28:09 +01:00
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
Jelle Zijlstra
a6bdb25991
typing: Deprecate creating a NamedTuple with kwargs ( #11567 )
...
c5fa796619/Lib/typing.py (L2874)
2024-03-10 16:20:35 -07: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
Shantanu
2d146e7da2
Use PEP 570 syntax in comments ( #11552 )
2024-03-09 15:06:25 -08:00
Shantanu
470a13ab09
Use PEP 570 syntax in stdlib ( #11250 )
2024-03-09 14:50:16 -08:00
Shantanu
4d8ae17776
Bump mypy to 1.9, add to json.encoder, small fixups ( #11549 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-03-09 14:25:00 -08:00
Jelle Zijlstra
5b1fd121e0
asyncio: Fix type of add_child_handler callback ( #11548 )
2024-03-09 17:02:05 +01:00
layday
ca1e47739e
Fix type of concurrent.futures.wait for Python <= 3.8 ( #11537 )
...
Closes #11533 .
2024-03-07 20:08:37 +01:00
Avasam
2116158891
Remove old type-ignore explanation comments not removed in #8280 ( #11513 )
2024-03-01 07:10:10 -08:00
Akuli
0ad004a776
tkinter: Simplify wm_iconphoto() ( #11508 )
2024-02-29 13:45:45 +02:00
Nikita Sobolev
675ab38ab7
Update pyright version to 1.1.350 ( #11501 )
...
If you're reading about this commit in an auto-generated changelog: this is an internal change that should have no impact on how these stubs are understood by static-analysis tools such as type checkers or IDEs
2024-02-29 10:14:39 +00:00