Commit Graph

9940 Commits

Author SHA1 Message Date
Stephen Morton
d70fad09dd selectors.KqueueSelector is documented as BSD-only (#13183) 2024-12-03 21:59:39 -08:00
Sebastian Rittau
9b500ad3ce [croniter] Update to 5.0.1 (#12926) 2024-12-03 20:06:28 -08:00
Stephen Morton
fe26deaee6 a close reading of the pickle module (#12971) 2024-12-03 20:03:54 -08:00
Sebastian Rittau
7fbb5fe32b Improve gzip.open() annotations (#13176)
* Return concrete io.TextIOWrapper instead of typing.TextIO.
* Allow file objects when opening in text mode. Closes: #13175
2024-12-03 17:33:47 -08:00
Konstantin Baikov
ce3605c582 Fix todo in seaborn algorithms (#13186) 2024-12-03 15:39:10 -08:00
Stephen Morton
6d32917d7f Move a couple allowlist entries to "don't fix" (#13187) 2024-12-03 15:36:46 -08:00
Stephen Morton
5425311939 sort platform allowlists (#13179) 2024-12-03 22:25:04 +01:00
Brian Schubert
318cebb776 Mark typing.TYPE_CHECKING as Final (#13180) 2024-12-03 22:23:19 +01:00
Luke T. Shumaker
18d27d734a Fixes for gdb stubs (#13169)
* gdb: Clarify a comment
* gdb: Fix gdb.unwinder.Unwinder.__call__ argument. It takes a gdb.PendingFrame, not a gdb.Frame.
* gdb: Unwinders may implement a proto without subclassing gdb.unwinder.Unwinder
* gdb: Fix Breakpoint.__init__

 1. `line` should be `int|str`, not just `int` (IDK what a string means,
    but that it can be a string is clear if you read
    py-breakpoint.c:bppy_init().
 2. `type` argument should be able to be passed to the "location" form,
    not just the "spec" form, even if
    https://sourceware.org/gdb/current/onlinedocs/gdb.html/Breakpoints-In-Python.html
    neglects to mention it (don't worry, I'll be submitting a patch to fix
    the doc soon).
 3. Fix the positional argument order (based on GDB's sources, it isn't
    really documented)
 4. Use more `@overloads` to enforce that at least 1 of `function`,
    `label`, or `line` are given in the location form.
2024-12-03 16:35:06 +01:00
Konstantin Baikov
fcf30cfd40 Fix todo in tarfile for modes with pipe char (#13130) 2024-12-03 13:48:47 +01:00
Stephen Morton
5461d37acf de-duplicate _dummy_threading (#13063)
While technically it's an independent implementation, the classes
all call themselves `threading.*` and have the same interfaces.

Except for local, which is from _threading_local instead.
2024-12-03 13:44:06 +01:00
Stephen Morton
4890153e61 add zipfile._path.glob (#13154) 2024-12-03 13:42:15 +01:00
Konstantin Baikov
cd60804f15 [fpdf2] Tighten FPDF.fonts annotation (#13168) 2024-12-03 13:35:08 +01:00
Stephen Morton
f3dfc90741 sys.tracebacklimit can be set to None (#13173) 2024-12-03 13:16:45 +01:00
Stephen Morton
a980fc5308 sort the common allowlist (#13164) 2024-12-03 13:07:48 +01:00
Stephen Morton
d5b0e4aa35 fixes to select module constants (#13174) 2024-12-03 12:45:10 +01:00
Stephen Morton
c606b4f8ad add socket.AF_DECnet value (#13172) 2024-12-03 09:08:49 +01:00
Stephen Morton
d9e5333ab8 sort security backport allowlist entries (#13165) 2024-12-03 09:07:09 +01:00
Konstantin Baikov
09dca1a7d0 Use SupportsFlush from typeshed to fix TODO (#13166) 2024-12-03 09:05:06 +01:00
Konstantin Baikov
9d743a3f1e Use _ReadableStream from codecs (#13167) 2024-12-03 09:04:28 +01:00
Konstantin Baikov
cb15f9e832 Remove obsolete todo from ibm_db.pyi (#13170)
The `SQL_ATTR_CONFIG_KEYWORDS_MAXLEN` attr is already there on line 100
2024-12-03 10:18:07 +03:00
Konstantin Baikov
f7c6acde6e [pika] Use protocol for _Credentials (#13159) 2024-12-02 18:22:20 +01:00
Konstantin Baikov
a078e6f5d3 Use Generic in weakref finalize (#13158) 2024-12-02 17:34:37 +01:00
Stephen Morton
c713947801 sort allowlists by version more consistently (#13160)
This makes it easier to ensure that categorization and comments
are in sync between one allowlist and another.
2024-12-02 17:29:07 +01:00
Avasam
a2323a41a6 Add google.protobuf.runtime_version (#13161) 2024-12-02 17:27:59 +01:00
Diogo
f2eae507b2 Set None as default value for prog in add_subparsers (#13163)
And add some default values to a few other parameters, too

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-12-02 11:43:46 +00:00
Sebastian Rittau
0a2da01946 Remove redis (#13157)
Closes: #10592
2024-11-30 23:52:56 +01:00
Stephen Morton
2ccc53bb67 Add a couple missing tkinter things (#13149) 2024-11-29 03:04:31 +02:00
Konstantin Baikov
cba73d93a8 Use a TypedDict for turtle._PenState (#13152) 2024-11-28 22:10:41 +02:00
Stephen Morton
7a0f6837e9 add missing ctypes things (#13147) 2024-11-28 12:09:47 -08:00
Stephen Morton
5c7d51f3b8 add missing attributes of _thread_local._localimpl (#13143)
add missing attributes of _thread_local._localimpl
2024-11-28 07:10:37 -08:00
Stephen Morton
00c0c8d984 cleaning up termios constants (#13138) 2024-11-28 07:04:05 -08:00
Stephen Morton
93a31af781 add modulefinder.test (#13148) 2024-11-28 07:03:06 -08:00
Stephen Morton
e22419c0ed add turtle.TNavigator.speed (#13150) 2024-11-28 07:01:57 -08:00
Stephen Morton
0969d25a1f Cleaning up os/posix module constants (#13134) 2024-11-28 06:23:44 +01:00
Stephen Morton
8c666665f7 add missing attributes in codecs module (#13145) 2024-11-27 20:23:50 -08:00
Stephen Morton
775f8671b3 add bz2.BZ2File.peek (#13144) 2024-11-27 19:56:57 -08:00
Stephen Morton
b286a59514 add configparser.RawConfigParser.converters (#13146) 2024-11-27 19:55:22 -08:00
Stephen Morton
11ec1a10fd Improve the SyntaxError constructor; add SyntaxError.print_file_and_line (#13141) 2024-11-27 22:21:48 +00:00
Stephen Morton
696e631330 remove broad allowlist entry (#13139) 2024-11-27 12:44:04 -08:00
Alex Waygood
90e6bd9aca Pin keras to 3.6.* when stubtesting tensorflow (#13137) 2024-11-27 08:50:23 -08:00
Sebastian Rittau
3f9234fb79 [icalendar] Update to 6.1.* (#13109) 2024-11-27 17:01:20 +01:00
Stephen Morton
4ce28d2539 add encodings.ascii and encodings.latin_1 (#13113) 2024-11-26 21:01:33 -08:00
Avasam
d6af76d4be Generate docutils.core and type publish_parts's return type (#13118) 2024-11-26 20:47:22 -08:00
Stephen Morton
c53442c30d add encodings.raw_unicode_escape and encodings.unicode_escape (#13114) 2024-11-26 20:45:48 -08:00
Avasam
f31a33c5e4 Add pywin32's isapi.install (#13119) 2024-11-26 20:40:25 -08:00
Stephen Morton
3d00ca80f1 add byte-to-byte encodings submodules (#13120) 2024-11-26 20:34:39 -08:00
Stephen Morton
3f9c6d5845 Add a batch of encodings submodules (#13112)
Also align encodings.utf_8 so the stub file is formatted the same
as these others that match
2024-11-26 20:24:29 -08:00
Stephen Morton
8d7436b3ef add encodings.utf_16 and encodings.utf_32 (#13121) 2024-11-26 20:03:53 -08:00
Stephen Morton
900e5c5b1b Add encodings.mbcs and encodings.oem (#13122) 2024-11-26 20:02:49 -08:00