Commit Graph

5396 Commits

Author SHA1 Message Date
Alex Waygood
5b0816e784 Fix stdlib stubtest after latest typing-extensions release (#11923) 2024-05-16 16:53:19 -04:00
Max Muoto
3195f9fb1b Use TypeVar defaults for Generator and AsyncGenerator (#11867) 2024-05-13 15:21:43 -07:00
Nikita Sobolev
5829e3bdea Update shelve.open and dbm.open to support path-like objects (#11881)
Closes #11856
2024-05-12 13:31:12 -07:00
Sebastian Rittau
ef0a5c2d12 Replace types._Cell with types.CellType (#11904)
Closes #11901
2024-05-12 06:38:38 -07:00
Anderson Bravalheri
b42e3b2e89 Use protocols instead of importlib.abc.Loader/MetaPathFinder/PathEntryFinder (#11890) 2024-05-12 11:58:33 +02:00
qexat
beefacf4e3 tempfile.SpooledTemporaryFile.truncate(): Fix return type for Python >=3.11 (#11892) 2024-05-10 16:59:23 +02:00
bytemarx
a10e4135fe Add missing ETH_P_ALL identifier to socket (#11876) 2024-05-10 11:50:37 +02:00
Sebastian Rittau
392ae934fc Move test_cases to stdlib/@tests/test_cases (#11865) 2024-05-09 19:27:09 -07:00
David Salvisberg
ea61ca5a30 [3.13] typing.(Async)ContextManager adds second type parameter (#11873)
This is in response to: https://github.com/python/cpython/pull/118681
2024-05-09 19:25:49 -07:00
Javier Zazo
2d33fe2122 deprecate pathlib.Path.link_to (#11875)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-05-07 21:14:14 +01:00
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