Commit Graph
1030 Commits
Author SHA1 Message Date
Alex WaygoodandGitHub ef346aba0d Fixes to typing and typing_extensions stubs (#11086) 2023-11-29 19:00:58 +00:00
Nikita SobolevandGitHub 06d0151b25 Enable redundant-self mypy error code (#11056) 2023-11-22 10:13:17 +00:00
Nikita SobolevandGitHub d232def6b2 Use consistent mypy output spacing (#11055) 2023-11-22 09:58:13 +00:00
Alex WaygoodandGitHub 83964a4dc5 stdlib: add many missing __del__ methods (#11042) 2023-11-18 11:32:12 -08:00
AkuliandGitHub cad0c04ec0 tkinter: Require passing in a callback function to .after() (#11013) 2023-11-10 20:18:25 +02:00
Jelle ZijlstraandGitHub b36f3c5229 asyncio: remove overly specific protocols (#10984)
The _warn parameter to these methods is just there to work around
some finalization issues and should never be used by users. In
addition, these protocols are out of date (the "stacklevel" argument
is not used by current CPython main). I don't think we gain anything
by trying to maintain these protocol definitions.
2023-11-07 19:26:25 -08:00
f7aa7b709a Improve regression test documentation (#10935)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-29 10:07:17 +00:00
Benedikt RadtkeandGitHub 1196915b39 fix nullability of scrypt params (#10942) 2023-10-29 01:35:39 +02:00
Alex WaygoodandGitHub 56288ad2d0 Add stubs for importlib.(resources.)simple (#10931) 2023-10-28 07:29:57 -07:00
AvasamandGitHub 49ba409da8 Replace isort with Ruff (#10912) 2023-10-27 20:14:38 -07:00
Sebastian RittauandGitHub 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
908993a807 Add stubs for importlib.(resources.)readers (#10928)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2023-10-26 14:18:55 +01:00
Alex WaygoodandGitHub b9640005eb Add stubs for nt (#10917) 2023-10-19 10:16:06 -07:00
AvasamandGitHub 21fcd8960f Use Ruff for from __future__ import annotations checks (#10910) 2023-10-19 11:40:41 +02:00
AvasamandGitHub 35873ec3d8 Doc: Use proper name capitalization of tooling (Ruff, Black, Flake8) (#10913) 2023-10-18 23:46:53 +01:00
Alex WaygoodandGitHub 2f8d01e9ec Bump mypy to 1.6.1 (#10862) 2023-10-18 07:18:05 +01:00
Rebecca ChenandGitHub 1ecaab1641 Run pytype_test in Python 3.11. (#10903)
As of version 2023.10.17, pytype now supports 3.11.
2023-10-18 00:44:14 +01:00
838dd3a5ba Add sys.monitoring from Python 3.12 (#10890)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-16 13:50:06 +01:00
Sebastian RittauandGitHub 7e2a3413fa Fix mypy_test if mypy returns negative exit code (#10866) 2023-10-11 14:53:16 +02:00
Sebastian RittauandGitHub 3632fc225c Extend and fix zipfile (#10861)
* Add `CompleteDirs` and `FastLookup` (Python 3.8+).
* Add `Path.root` (Python 3.8+).
* Use concrete signature for `Path.open()` (Python 3.8).
* Fix signature of `Path.open()` for Python 3.9+:
   + Add overloads for text and binary modes with fixed return types.
   + Disallow extra arguments for binary modes.
   + Replace `*args` and `**kwargs` with accepted arguments for
     text modes.

Closes: #10847
2023-10-08 06:30:51 -07:00
Nikita SobolevandGitHub 5531e9d470 Add _locale module (#10859)
More accurately reflect the platform availability of several constants and functions in `locale`.
2023-10-08 12:55:19 +02:00
Alex WaygoodandGitHub e4edcf23e0 Fix platform availability of some Unix constants (#10857) 2023-10-07 15:05:20 -07:00
Nikita SobolevandGitHub 8acf1944f3 Remove allowlist entries for _ctypes on win (#10855) 2023-10-07 21:43:33 +02:00
Nikita SobolevandGitHub fb994e344b Fix ssl.SSLSocket methods on windows (#10849) 2023-10-07 07:50:52 +01:00
Nikita SobolevandGitHub 48d4f7a6a5 Add winreg.HKEYType.handle property (#10848) 2023-10-06 19:20:12 +01:00
Nikita SobolevandGitHub a12b2053cd Add SetErrorMode to msvcrt module (#10842) 2023-10-05 22:06:11 +01:00
Nikita SobolevandGitHub cc5b3f8bc4 Fix platform availability of some os/posix constants (#10831) 2023-10-03 15:20:00 +01:00
860e34eec9 Fix allowlist entries in asyncio.windows_events (#10824)
And fix the return value of return value of `IocpProactor.recvfrom_into()`, which was incorrect

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-10-02 16:04:11 +01:00
Alex WaygoodandGitHub 54d825af59 Fix Windows-specific allowlist entries in _msi, msilib, selectors and subprocess (#10822) 2023-10-02 13:01:47 +02:00
Nikita SobolevandGitHub 07e611d41f select.POLLRDHUP does not exist on macos (#10823) 2023-10-02 11:59:29 +01:00
Nikita SobolevandGitHub 66d183fc56 mimetypes.MimeTypes.read_windows_registry always exists (#10821) 2023-10-02 11:35:48 +01:00
Nikita SobolevandGitHub b3b5661f80 Add DefaultSelector.fileno on platforms where it exists (#10820) 2023-10-02 11:15:49 +01:00
Alex WaygoodandGitHub 205cfcfca6 Fix availability of some constants for Windows (#10818) 2023-10-01 16:27:55 -07:00
Alex WaygoodandGitHub efa7a51d09 Add a few missing things on Windows, py310+ (#10817) 2023-10-01 23:30:44 +01:00
Nikita SobolevandGitHub bd4462cc62 Re-export SYSPROTO_CONTROL and PF_SYSTEM in socket on macos (#10814) 2023-10-01 15:38:44 +01:00
460fa14dfc Fix curses.color_pair signature (#10811)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-30 20:58:37 +01:00
Nikita SobolevandGitHub 16b9884601 Fix _posixsubprocess module for python3.12 (#10809) 2023-09-30 17:51:33 +01:00
Nikita SobolevandGitHub 4c5d3e5ad2 Some curses functions were removed in 3.12 for macos (#10808) 2023-09-30 11:28:09 +02:00
Nikita SobolevandGitHub 398b31de92 Removed unused sections from allowlists (#10804) 2023-09-29 22:53:45 +01:00
Nikita SobolevandGitHub ec69d98778 locale: Remove some hopefully-unnecessary allowlist entries for macos-3.10 (#10805) 2023-09-29 22:44:40 +01:00
Nikita SobolevandGitHub 7cf1fed75d Fix sigtimedwait and sigwaitinfo signature (#10803) 2023-09-29 12:38:14 -07:00
Nikita SobolevandGitHub 1ac5b7b1ac Add x_exports to xxlimited (#10802) 2023-09-29 10:54:58 +02:00
4ea52b3bcf Update resource.prlimit for Python 3.12+ (#10794)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-28 13:59:51 +01:00
Amin AlaeeandGitHub ac4f4a4c94 Add os.setns for Linux on Python 3.12+ (#10789) 2023-09-28 13:53:25 +02:00
Amin AlaeeandGitHub c6161f7108 Limit os.sendfile arguments based on platform (#10790) 2023-09-28 13:36:25 +02:00
c9835481e3 Add MAP_STACK to mmap module (#10792)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-28 11:12:41 +01:00
Amin AlaeeandGitHub 99ce091f17 Make os.setresuid and os.setresgid positional-only (#10791) 2023-09-28 10:10:21 +01:00
Nikita SobolevandGitHub 4dad5311d5 Update tty to python 3.12 (#10784) 2023-09-27 11:15:32 +02:00
Nikita SobolevandGitHub b23042e854 ssl.OP_ENABLE_KTLS should exist on linux (#10778) 2023-09-26 09:48:00 +02:00
Nikita SobolevandGitHub 9f4edca70e Update os and posix to python 3.12 on darwin (#10779) 2023-09-26 09:46:29 +02:00