Commit Graph

8130 Commits

Author SHA1 Message Date
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
Nikita Sobolev
f843922df8 datetime: Remove unused stubtest allowlist entry for py312 (#10277) 2023-07-12 21:06:06 +01:00
David Robertson
338e067ec4 Pillow: mark MAX_IMAGE_PIXELS as non-final (#10445) 2023-07-12 15:11:48 +01:00
Eugene Toder
cfc5425cb3 Add defaultdict.__(r)or__; improve ChainMap.__(r)or__ and UserDict.__(r)or__ (#10427)
Add __or__ to defaultdict

Also, add overloads with Self type to other __[r]or__ methods.
2023-07-11 19:39:12 +01:00
Sebastian Rittau
19992e6212 Mark some errnos as darwin- or solaris-only (#10440)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-07-11 17:09:40 +01:00
Jisuk Byun
d14ab09375 Fix and comment type mismatches in email library hints (#10437) 2023-07-11 00:07:04 -07:00
github-actions[bot]
0ab25cbf67 [stubsabot] Bump braintree to 4.21.* (#10433)
Release: https://pypi.org/pypi/braintree/4.21.0
Homepage: https://developer.paypal.com/braintree/docs/reference/overview
2023-07-11 07:50:34 +01:00
github-actions[bot]
d0573dfc44 [stubsabot] Bump flake8-bugbear to 23.7.10 (#10434)
Release: https://pypi.org/pypi/flake8-bugbear/23.7.10
Homepage: https://github.com/PyCQA/flake8-bugbear
Changelog: https://github.com/PyCQA/flake8-bugbear#change-log
Diff: https://github.com/PyCQA/flake8-bugbear/compare/23.6.5...23.7.10

Stubsabot analysis of the diff between the two releases:
 - 1 public Python file has been added: `tests/b034.py`.
 - 0 files included in typeshed's stubs have been deleted.
 - 1 file included in typeshed's stubs has been modified or renamed: `bugbear.py`.
 - Total lines of Python code added: 230.
 - Total lines of Python code deleted: 91.
2023-07-11 07:49:46 +01:00
Alex Waygood
81b8211d0e Revert "Remove un-needed __hash__ methods from stdlib (#8465)" (#10426)
Reverts https://github.com/python/typeshed/pull/8465
Fixes https://github.com/python/typeshed/issues/10424
Closes https://github.com/python/typeshed/pull/10425

https://github.com/python/typeshed/pull/8465 caused regressions: see https://github.com/python/typeshed/issues/10424 and https://github.com/python/mypy/issues/13800. Since it didn't fix any known problems (just some stylistic nits that we had), let's just revert the PR.
2023-07-09 08:43:32 -07:00
Ali Hamdan
aed8c3fe1c Replace aliases by builtins.* in uuid (#10422)
These aliases were used because the class has properties called
`int` and `bytes`. I think it is better to use the shadowed types
from the builtins module. This should not change anything from the
type checking side but it improves the IDE experience[^1].

[^1]: I was using uuid recently and the aliases showed up in vscode,
I thought they were uuid special types and had to look in the stub to
know what they are.
2023-07-08 11:58:50 +01:00
Nikita Sobolev
e7ba0327e1 Remove SQLAlchemy stubs (#10389)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2023-07-08 10:24:59 +01:00
Shantanu
507e714b9e contextvars: rm -rf (#10420) 2023-07-07 11:26:07 -07:00
Shantanu
5ad520e27b Mark contextvars stubs as no longer updated (#10419) 2023-07-07 00:16:56 -07:00
Sergio
5bd3cf3b9e Stripe: add shipping_rate to __init__.py (#10416) 2023-07-06 22:00:11 +01:00
Sergio
4242eadc1e stripe: add shipping_rate type (#10323)
* add shipping_rate type

* remove redundant method
2023-07-06 15:10:14 +01:00