Commit Graph

8294 Commits

Author SHA1 Message Date
Sebastian Rittau
47905d2d19 stubsabot: Add stubsabot label to PRs (#10507) 2023-07-25 17:40:11 +02:00
Sebastian Rittau
9b94bd4e5f stubsabot: Add distributions argument (#10505)
[stubsabot] Add distributions argument

This allows to specify which explicitly which distributions to update.
Useful for testing.
2023-07-25 06:40:55 -07:00
Akuli
38dc97ba71 Complete send2trash stubs (#10504) 2023-07-25 13:31:17 +01:00
Sam Bull
b325815f44 Fix type of Future._exception (#10502) 2023-07-24 14:49:13 -07:00
David Salvisberg
21cb2cb546 Adds stubs for uWSGI (#10432)
This adds stubs for the uWSGI Python API.

Similarly to GDB the Python API is only accessible within a uWSGI process, some parts of the API also only exist if certain configuration options are enabled. This makes running stubtest a bit of pain.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2023-07-24 14:32:52 +03:00
Alex Waygood
7d33060e6a Add upstream_repository to metadata for s2clientprotocol (#10500)
These stubs were added yesterday in #10372, and I forgot that we had just added this new metadata field
2023-07-22 20:43:30 +01:00
PyHedgehog
7a00c25959 Add stubs for click-default-group (#9304)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
Co-authored-by: Avasam <samuel.06@hotmail.com>
2023-07-22 20:21:37 +01:00
David Salvisberg
81373c1c63 Add stubs for greenlet (#10463)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-07-22 19:23:35 +01:00
Koichi Akabe
53a8932797 Pretend _EnumTypeWrapper inherits from type (#10203)
Pretend `google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper` inherits from `type`. It doesn't really, but this makes type checkers stop complaining when you use it as a metaclass, which is the only reason the class exists.
2023-07-22 15:50:40 +01:00
Jelle Zijlstra
f577c4c133 Update typing_extensions for 4.7.* (#10344) 2023-07-22 12:51:22 +01:00
Alex Waygood
65cb3735ec Bump pytype and ruff test dependencies (#10499) 2023-07-22 12:39:16 +01:00
Alex Waygood
2887f60196 Use ruff, not pycln, for removing unused imports (#10498) 2023-07-22 12:14:27 +01:00
James Braza
464b71c810 Added url: str to http.client.HTTPResponse (#10497) 2023-07-22 01:58:13 +01:00
Jarrett Knauer
33588c7908 Add stubs for s2clientprotocol (#10372) 2023-07-21 17:18:07 +01:00
Alex Waygood
49a2371d7a Auto-add upstream URLs in create_baseline_stubs.py (#10491)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2023-07-21 15:56:53 +01:00
Alex Waygood
5498cabfe2 Bump various test dependencies (#10492) 2023-07-21 00:09:19 +01:00
Akuli
754473a30d Add a few more upstream_repository URLs (#10489) 2023-07-20 17:23:19 +02:00
Sebastian Rittau
26e8b9c68a [stubsabot] Include repository in issue text (#10488)
Also, get GitHub repository for diff from METADATA.toml, instead of
scraping it from PyPI.
2023-07-20 17:22:15 +02:00
Sebastian Rittau
afe18e95a9 Add an upstream_repository field to METADATA.toml (#10487)
Closes: #10478
2023-07-20 16:45:41 +02:00
Nikita Sobolev
3a9b0c5790 Update caldav to 1.3.* (#10485)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-07-20 15:14:32 +01:00
Numerlor
b3eb4b95a2 Change format_exception_only to work with exception value on first/second arg 2023-07-20 14:44:00 +02:00
Alex Waygood
79e092e133 Add some ruff autofixes to CI (#10458) 2023-07-20 14:41:52 +02:00
Sebastian Rittau
a04cb3b058 Add stubs for qrcode (#10380) 2023-07-20 14:36:20 +02:00
Oleg Höfling
4f56889f23 Add stubs for pluggy==1.2.0 (#10473)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-07-20 12:50:25 +01:00
Nikita Sobolev
d5c137c0fc py312 updates for array (#10483) 2023-07-20 09:38:58 +01:00
Nikita Sobolev
032f9195f9 Add a more precise signature for AsyncMock.reset_mock() (#10481) 2023-07-19 13:25:20 +01:00
Nikita Sobolev
9e7477d986 Update mock to 5.1.* (#10472) 2023-07-19 13:01:01 +01:00
Nikita Sobolev
8da4739042 Update python-crontab to 3.0.* (#10475) 2023-07-19 13:50:33 +02:00
Jakob Stadler
7dbbdb0193 Fix namespace argument regression in argparse.parse_args (#10387) 2023-07-19 13:35:23 +02:00
Alex Waygood
1088ab3d93 Improve stubs for classmethod and staticmethod (#10421) 2023-07-19 13:32:04 +02:00
Avasam
61914253a0 Type openpyxl functions module and its usages (#10322) 2023-07-19 13:29:31 +02:00
Nikita Sobolev
797779d222 Bump pyright version to 1.1.318 (#10476) 2023-07-19 10:10:22 +02:00
github-actions[bot]
b9d45f2700 [stubsabot] Bump tree-sitter-languages to 1.7.* (#10474)
Release: https://pypi.org/pypi/tree-sitter-languages/1.7.0
Homepage: https://github.com/grantjenks/py-tree-sitter-languages
Diff: https://github.com/grantjenks/py-tree-sitter-languages/compare/v1.6.1...v1.7.0

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 1 file included in typeshed's stubs has been modified or renamed: `tree_sitter_languages/__init__.py`.
 - Total lines of Python code added: 3.
 - Total lines of Python code deleted: 1.
2023-07-19 01:24:18 +01:00
Jisuk Byun
60a95da159 Fix unsound return type hints in urllib module (#10470)
* Fix unsound return type hints in urllib module
Closes #10466

* Fix return type of ftplib.FTP.ntransfercmd
Related to #10466
2023-07-18 17:46:28 +01:00
Nikita Sobolev
95b268999c pdb: py312 updates (#10471) 2023-07-18 17:33:27 +01:00
Bruno Cabral
4088b8425f tkinter: Treeview identifiers can be int (#10468) 2023-07-17 23:45:59 +03:00
Alex Waygood
03b4bb9cce Stdlib: add many missing __hash__ and __eq__ methods (#10464) 2023-07-17 14:21:02 +02:00
Jisuk Byun
a04822051f Fix type hints in email module (#10450) 2023-07-17 14:14:28 +02:00
Nikita Sobolev
4a643318ea sqlite3 updates for py312 (#10469) 2023-07-17 12:44:49 +01:00
Nikita Sobolev
57c435cd7e Update pydoc for 3.12 (#10467) 2023-07-16 11:28:56 +01:00
Alex Waygood
47fc836259 Add stubs for pkg_resources._vendor.packaging (#10423) 2023-07-15 13:56:21 -07:00
anniel-stripe
a83e55990c [stripe] Add type for PaymentLink (#10461) 2023-07-15 11:11:35 +01:00
Sebastian Rittau
7ea173c4ad Fix @patch when new is missing (#10459) 2023-07-14 12:53:13 +02:00
Bruno Cabral
1d7f0d087b tkinter: accept Iterable[int] for grid_columnconfigure, grid_rowconfigure (#10455)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2023-07-13 23:38:47 +01:00
Bruno Cabral
eba3a4903d Accept ints for tkinter.ttk.Treeview columns (#10456)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2023-07-14 01:29:06 +03:00
Nikita Sobolev
3c9522bcfe Bump pyright version (#10454) 2023-07-13 09:08:27 -07:00
Nikita Sobolev
17c0421c29 Adds py3.12 constants to sqlite3 (#10453) 2023-07-13 16:49:34 +01:00
Sebastian Rittau
1925730585 [jsonschema] Use Incomplete instead of Any (#10451)
Replace `Any` with `Incomplete`
2023-07-13 13:34:24 +01:00
Hood Chatham
ad3648dd4e Fix type of linecache.cache (#10447)
An entry of linecache.cache is either a lazy entry or a full entry. The full entries
are typed correctly but the lazy entry is supposed to be a one-tuple consisting of a
function that takes zero arguments and returns either a string or None.
2023-07-13 11:15:15 +02:00
Alex Waygood
f2ee9e9368 Stubtest: fixes for py312beta4 (#10449)
* Revert "json: add AttrDict in py312 (#10212)"

This reverts commit 7994f165da.

* TaskGroup updates
2023-07-12 21:21:05 +01:00