Commit Graph

6924 Commits

Author SHA1 Message Date
Samuel T
ef4e52df93 PyAutoGUI: Use types from PyScreeze (#8824) 2022-10-03 15:11:42 -07:00
Sam Bull
493e35b15e Make asyncio.Task covariant (#8781) 2022-10-03 14:44:59 -07:00
Nikita Sobolev
27e9fde673 Add redis.asyncio.parser (#8830)
Source: https://github.com/redis/redis-py/blob/master/redis/asyncio/parser.py
2022-10-03 10:49:55 -07:00
Alex Waygood
78ca9c7390 Bump mypy to 0.982 (#8831) 2022-10-03 10:34:44 -07:00
Nikita Sobolev
721ad3d785 [redis] Improve fail parameter of Retry.call_with_retry (#8827)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-10-03 09:48:37 -07:00
Samuel T
2ded9e190f Add pyscreeze stubs (#8823) 2022-10-03 09:33:15 -07:00
Samuel T
0b71c96970 Add pywin32 type stubs from microsoft/python-type-stubs and mhammond/pywin32 (#8825) 2022-10-03 09:32:43 -07:00
Nikita Sobolev
bee4ee3199 [redis] Improve redis.asyncio.lock types (#8826) 2022-10-03 09:31:10 -07:00
crusaderky
6414250888 psutil: Improve types for disk_io_counters() and net_io_counters() (#8829) 2022-10-03 09:25:25 -07:00
Giles Johnson
aab29f626c Add type stubs for package console-menu (#8820)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-10-03 09:22:39 -07:00
Nikita Sobolev
6950c32370 Add parser to invoke.completion.complete.complete (#8819)
Closes https://github.com/python/typeshed/issues/8818
2022-10-01 12:52:39 -07:00
Shantanu
d7a701372d Run stub_uploader tests in CI (#8794) 2022-09-30 10:07:34 -07:00
Samuel T
f511f1f4e9 Allow create_baseline_stubs.py to add packages to existing stub (#8809) 2022-09-30 15:49:58 +01:00
Nikita Sobolev
380022c650 Remove empty __init__ methods (#8816) 2022-09-30 13:08:41 +01:00
Alex Waygood
deff426b6f Fix multiprocessing.DictProxy.values() (#8815)
Fixes #8814
2022-09-30 13:37:53 +02:00
github-actions[bot]
f9fdee5b8d [stubsabot] Bump setuptools to 65.4.* (#8811)
Release: https://pypi.org/pypi/setuptools/65.4.0
Homepage: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v65.3.0...v65.4.0
2022-09-29 18:02:57 -07:00
github-actions[bot]
11a4f068c4 [stubsabot] Bump flake8-bugbear to 22.9.23 (#8812)
Release: https://pypi.org/pypi/flake8-bugbear/22.9.23
Homepage: https://github.com/PyCQA/flake8-bugbear
Changelog: https://github.com/PyCQA/flake8-bugbear#change-log
Diff: https://github.com/PyCQA/flake8-bugbear/compare/22.9.11...22.9.23

If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR

Note that you will need to close and re-open the PR in order to trigger CI
2022-09-29 18:02:08 -07:00
Akuli
ba7f9b3715 Fix installing dependencies for 3rd party stubtest (#8807) 2022-09-29 10:52:11 +02:00
Akuli
11a14f58a3 Delete builtins._StandardError (#8806) 2022-09-29 09:32:11 +01:00
Alex Waygood
ab2fba9c83 check_consistent.py: ignore .gitignored files (#8804) 2022-09-28 17:02:27 +01:00
Nikita Sobolev
133e2d860d Use Mapping instead of dict in inspect.py (#8803) 2022-09-28 08:39:21 -07:00
Alex Waygood
d84fda1f12 Upgrade pyright to 1.1.273 (#8802) 2022-09-28 14:01:08 +01:00
Klas Eskilson
26ea6b8b4d Add __init__ definition for AttributeError (#8801)
Since Python 3.10, AttributeError supports keyword arguments for name
and obj.
2022-09-28 13:22:10 +01:00
layday
40223373db Update importlib.resources types (#8658)
* Replace `Str[OrBytes]Path` with `str`

A filesystem path is not valid as an abstract resource.

`TraversableResources` cannot only accept strings if `ResourceReader`
accepts both bytes and strings.  `importlib.resources` does not work
with bytes in any case and `ResourceReader` is typed as taking
a `typing.Text` object in `importlib.resources`' source code.

* Update `joinpath` signature from Python 3.11
2022-09-27 20:31:33 +01:00
Shantanu
95444479ac google-cloud-ndb: drop dependency on types-six (#8793)
For https://github.com/typeshed-internal/stub_uploader/pull/61#discussion_r979327370
2022-09-26 22:56:42 -07:00
Alex Waygood
48e76e8a56 Bump mypy to 0.981 (#8796) 2022-09-26 17:14:33 -07:00
Shantanu
9abe56a19a boto: drop dependency on types-six (#8792) 2022-09-26 06:01:19 -07:00
Hugo van Kemenade
a38d619c70 prettytable: get_X_string return str (#8791) 2022-09-25 13:36:04 -07:00
Nikita Sobolev
f611d18f70 six: Remove unused __future__ import (#8790) 2022-09-25 06:50:26 -07:00
Pierre-Marie de Rodat
bd7b74a316 gdb: add missing automatic imports (#8788)
When GDB has just started, several `gdb` submodules are automatically
loaded, so user code does not have to manually import them (for instance
`import gdb.events`). Reflect that in `gdb` stubs.
2022-09-24 18:32:10 +01:00
dependabot[bot]
c1692130fd google-cloud-ndb: bump stubtest protobuf requirement (#8786)
Bumps [protobuf](https://github.com/protocolbuffers/protobuf) from 3.20.1 to 3.20.2.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.20.1...v3.20.2)

---
updated-dependencies:
- dependency-name: protobuf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-23 22:49:28 +01:00
Shantanu
2969922b68 Fix intransitive subtyping issue with SupportsGetItem (#8785)
See https://github.com/python/mypy/issues/13713 for details
2022-09-23 13:25:15 -07:00
github-actions[bot]
4746f9b238 [stubsabot] Bump hdbcli to 2.14.* (#8783)
Release: https://pypi.org/pypi/hdbcli/2.14.18
Homepage: https://www.sap.com/

If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR

Note that you will need to close and re-open the PR in order to trigger CI

Co-authored-by: stubsabot <>
2022-09-22 18:25:23 -07:00
github-actions[bot]
f18b7552f3 [stubsabot] Bump emoji to 2.1.* (#8784)
Release: https://pypi.org/pypi/emoji/2.1.0
Homepage: https://github.com/carpedm20/emoji/
Diff: https://github.com/carpedm20/emoji/compare/v2.0.0...v2.1.0

If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR

Note that you will need to close and re-open the PR in order to trigger CI

Co-authored-by: stubsabot <>
2022-09-22 18:21:41 -07:00
kasium
66751e2ebf Reexport NoResultFound in orm/exc (#8782) 2022-09-22 11:57:29 +02:00
Alex Waygood
008fe2e764 mypy_test.py: rework filter, exclude and --dir arguments (#8711) 2022-09-22 08:31:24 +01:00
Rogdham
b3db49abbd requests: improve _Data type (#8762)
requests: improve _Data type

This allows to pass an Iterable[bytes] for streaming request data.
2022-09-21 16:35:09 -07:00
Samuel T
dba47e0cfe Add reportMissingParameterType to pyrightconfig.stricter.json (#8770) 2022-09-21 16:19:09 -07:00
Samuel T
d7160ca67c Pyinstaller: use StrPath over StrOrBytesPath (#8780)
Fix incorrect StrOrBytesPath in PyInstaller stubs
Change StrOrBytesPath to StrPath when exclusively used with strings.
2022-09-21 16:09:11 -07:00
Samuel T
6ca80d340e pyright_test.py: Support for npx 8 and pyright PyPI package (#8769) 2022-09-21 15:57:14 +01:00
Shane Harvey
1a2914adc5 Use Callable[..., Any] instead of Callable[..., object] in unittest (#8399) 2022-09-21 13:46:38 +01:00
Chris Kuehl
44142ce13a pygments.lexers.guess_lexer_for_filename cannot return None (#8777) 2022-09-21 11:47:31 +02:00
François Conzelmann
7eb277e451 Add type to some asyncio.transports methods (#8756)
`WriteTransport.write`, `WriteTransport.writelines` and `DatagramTransport.sendto` methods only accept `bytes` trying an other type raises an exception

`BaseTransport._extra` is a dictionary with string as key
2022-09-20 19:14:59 -07:00
Alex Waygood
2e50b58ca9 Link earliest version with py.typed in stubsabot obsoletion PRs (#8775)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-09-20 23:37:21 +01:00
Chris Cotter
1a3ae3efc7 socket: sendmsg can accept None for the address (#8771)
Per the Python docs and socketmodule.c source, the address argument can
be None.

https://docs.python.org/3/library/socket.html#socket.socket.sendmsg
2022-09-20 14:15:47 +01:00
Tdxdxoz
efeff93d21 fix: pillow.ImageDraw.textlength may return float (#8773) 2022-09-20 14:13:29 +01:00
Alex Waygood
876c9bf6af stubsabot: fix two GitHub diff link bugs (#8767) 2022-09-19 11:13:16 -07:00
Shantanu
67c858408d Upgrade to termcolor>=2 (#8766) 2022-09-19 08:17:30 +02:00
Alex Waygood
97c935a3fe Fix protobuf stubtest errors (#8758) 2022-09-18 17:47:36 -07:00
Oleh Prypin
30e47fc8ae Add markdown.util.nearing_recursion_limit (#8764) 2022-09-18 13:06:55 +01:00