yejia-stripe
42c044eb67
stripe: Add SearchableAPIResource, SearchResultObject (#8696 )
2022-09-13 16:29:56 +01:00
Kevin Kirsche
65c4ddfc57
Update parsimonious to 0.10.0 ( #8730 )
2022-09-13 15:59:08 +01:00
Samuel T
3ec7b1f2bb
Add stubs for D3DShot ( #8652 )
2022-09-12 18:32:47 +01:00
Alex Waygood
34383fcab5
[pynput] Fix annotations of Controller.Key(Code) ( #8722 )
...
Document stubtest entries
2022-09-12 13:30:57 +02:00
Alex Waygood
c4483a7b01
Update fdpf2 stubs for v2.5.7 ( #8721 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-09-11 15:27:19 +01:00
Amethyst Reese
b4d91054e3
Add missing attributes for docutils.io ( #8716 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-09-11 14:53:13 +01:00
Kevin Kirsche
525d122448
Improve paramiko.win_pageant stubs ( #8671 )
2022-09-10 23:10:14 +01:00
Akuli
ab022557e2
Run third-party stubtest under xvfb-run ( #8719 )
2022-09-10 18:34:11 +03:00
Nikita Sobolev
43d4174590
SQLAlchemy: Use ParamSpec for Engine.transaction() and Engine.run_callable() (#8718 )
2022-09-10 16:29:54 +01:00
Samuel T
4f2666ba8e
Complete pyautogui stubs ( #8684 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-09-09 12:34:45 +01:00
github-actions[bot]
8a8db9c6d4
[stubsabot] Bump aiofiles to 22.1.* ( #8714 )
...
Co-authored-by: stubsabot <>
2022-09-08 18:25:46 -07:00
Alex Waygood
b53843ab46
Add infrastructure allowing for test cases for third-party stubs ( #8700 )
...
- Move the logic for running mypy on the test cases from `tests/mypy_test.py` to a separate script, `tests/regr_test.py`.
- Add the necessary logic in order to be able to have test cases for third-party stubs.
- Move logic common to `tests/mypy_test.py` and `tests/regr_test.py` into `tests/colors.py`, and rename `tests/colors.py` to `tests/utils.py`.
- Add a new check to `tests/check_consistent.py`, to enforce the use of `# pyright: reportUnnecessaryTypeIgnoreComment=true` comments in third-party test cases. These are essential if we want to have our tests against false-negatives work with pyright.
- Update the relevant documentation to account for the new test file.
- Add a new job to the `tests.yml` GitHub workflow, to run the new test in CI.
- Add a simple proof-of-concept test case for `requests`, as a regression test for #7998 .
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2022-09-08 16:51:33 +01:00
Alexander Reynolds
fdbf1396d1
[protobuf] MessageToJson indent parameter can be None ( #8705 )
2022-09-08 13:41:18 +02:00
Elton H.Y. Chou
ff3c3b8373
Fix urllib3.response.HTTPResponse.geturl() return type ( #8704 )
...
urllib3.response.HTTPResponse.geturl() return should be `str | None`.
Source: 3951d3cf8f/src/urllib3/response.py (L416-L417)
2022-09-07 17:00:38 -07:00
Akuli
b98ee679fb
tree-sitter: add missing members ( #8693 )
2022-09-06 12:28:11 -07:00
James Hilton-Balfe
189d1116d1
[bs4] More precise types for bs4.Tag.select(_one) ( #8687 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-09-05 15:16:33 -07:00
Samuel T
939fc86e79
Added stubs for keyboard ( #8666 )
2022-09-05 14:34:11 -07:00
Kevin Kirsche
8e4b89a707
fix: add missing paramiko.win_openssh ( #8672 )
2022-09-03 14:03:10 -07:00
Alex Waygood
483f0ac078
prettytable: Fix stubtest errors (#8676 )
...
Fixes #8674 . A partial revert of 9e69627501 .
2022-09-03 13:26:23 -07:00
Alex Waygood
8bc2565d11
pyautogui: just skip stubtest (#8678 )
2022-09-03 13:25:50 -07:00
Kevin Kirsche
82cccac369
jsonschema._format: update some annotations to match upstream (#8673 )
2022-09-03 12:54:48 +01:00
Samuel T
4c100febcd
Add stubs for pyautogui ( #8654 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-09-03 12:45:20 +01:00
Nikita Sobolev
4a4acdb30a
redis: Improve kwargs typing in sentinel (#8661 )
2022-09-02 13:02:12 +01:00
github-actions[bot]
bf3b1f0c4d
[stubsabot] Bump jsonschema to 4.15.* ( #8665 )
...
Co-authored-by: stubsabot <>
2022-09-01 18:46:51 -07:00
Kevin Kirsche
80fdf9e6c6
paramiko: Add missing types in __init__.pyi and _version.pyi (#8651 )
2022-08-31 18:00:39 +01:00
Alex Waygood
8b222200e0
fpdf2: Remove redundant str | Literal['DEPRECATED'] union (#8650 )
2022-08-30 19:54:52 +01:00
github-actions[bot]
9e69627501
Bump prettytable to 3.4.* ( #8621 )
2022-08-29 13:37:50 -07:00
Alex Waygood
c72c9a6c96
typed_ast.ast3: arguments.kw_defaults should be list[expr | None] (#8645 )
...
```python
>>> from typed_ast import ast3
>>> print(ast3.dump(ast3.parse('def foo(*, arg: int) -> None: ...')))
Module(body=[FunctionDef(name='foo', args=arguments(args=[], vararg=None, kwonlyargs=[arg(arg='arg', annotation=Name(id='int', ctx=Load()), type_comment=None)], kw_defaults=[None], kwarg=None, defaults=[]), body=[Expr(value=Ellipsis())], decorator_list=[], returns=NameConstant(value=None), type_comment=None)], type_ignores=[])
```
This bug was discovered in https://github.com/python/mypy/pull/13547
2022-08-29 14:44:48 +01:00
Alex Waygood
e2211cb420
Delete some unused # noqa comments ( #8639 )
2022-08-29 12:56:06 +01:00
Nikita Sobolev
d3cded7fc6
redis: Add _Encodable type alias ( #8638 )
2022-08-29 13:38:22 +02:00
Nikita Sobolev
481027e194
redis: Improve ClusterPubSub types ( #8627 )
2022-08-27 16:13:46 +01:00
github-actions[bot]
6114fb54c0
[stubsabot] Bump tree-sitter-languages to 1.4.* ( #8623 )
2022-08-26 10:23:59 +01:00
Nipunn Koorapati
7beaebff40
Bump to mypy-protobuf 3.3.0 ( #8612 )
...
* Bump to mypy-protobuf 3.3.0
* Remove some ignores for formatting
2022-08-26 07:24:11 +01:00
github-actions[bot]
ef25fc6c9b
[stubsabot] Bump jsonschema to 4.14.* ( #8619 )
2022-08-25 19:36:01 -07:00
github-actions[bot]
e93af9b333
[stubsabot] Bump setuptools to 65.3.* ( #8620 )
2022-08-25 19:34:32 -07:00
github-actions[bot]
d6eb817b31
[stubsabot] Bump flake8-bugbear to 22.8.23 ( #8622 )
2022-08-25 19:33:22 -07:00
Stephen Rosen
2c534dc220
Improve annotation of jsonschema.validators.create ( #8608 )
2022-08-25 15:25:15 +02:00
Nipunn Koorapati
c17c0d5607
Bump protobuf to 3.20.1 ( #8609 )
...
There are even newer versions available (4.*), but I had found a bug
in it which prevented it from working with mypy-protobuf. For now,
sticking to just 3.20.1
2022-08-25 13:28:08 +01:00
Liam Damewood
3ab3711f42
tqdm: All leave arguments can be None ( #8603 )
...
All `leave` arguments are optional in tqdm.
2022-08-24 12:30:29 +02:00
Alex Waygood
1e33759f09
cryptography: Add some missing @abstractmethod decorators (#8598 )
2022-08-23 11:38:08 -07:00
Alex Waygood
e160324ba7
six: Fix incorrect type[type[Any]] annotation (#8599 )
...
Mypy will (correctly, I think) start flagging `type[type[Any]]` as an illegal annotation when mypy 0.980 comes out. Let's fix it now, before it comes out.
2022-08-23 11:26:10 -07:00
Nikita Sobolev
57495ddaf4
Update redis/cluster.pyi ( #8593 )
2022-08-22 16:09:01 +02:00
Nikita Sobolev
383eca299b
redis: Do not override AbstractRedis.RESPONSE_CALLBACKS (#8592 )
2022-08-22 14:51:51 +01:00
kasium
cb15481633
Flask-SQLAlchemy: session should be scoped_session, not Session (#8589 )
2022-08-22 13:30:33 +01:00
Oleh Prypin
d08e8baef7
Markdown: BlockProcessor.detab returns a pair of strings (#8586 )
2022-08-21 19:59:41 +01:00
Nikita Sobolev
e17ca47782
Further improve redis.cluster ( #8578 )
2022-08-21 17:00:53 +01:00
Joel
8715951fca
Improve return type for psycopg2 connect function ( #8567 )
...
When a `connection_factory` argument is provided to psycopg2's `connect` function, the function's return type now matches that of the factory output class. However, if `cursor_factory` is set and has a non-`None` value and/or `connection_factory` is not set or is `None`, the return type is simply `connection`, as before.
2022-08-20 16:34:13 -07:00
Nikita Sobolev
c6d34cc24d
Improve redis.cluster types ( #8573 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-08-20 18:46:09 +01:00
forana
0d47b49840
Flask-SQLAlchemy: type session as Session (#8550 )
2022-08-20 16:25:17 +01:00
Deon Pearson
d0d24b7301
redis: correct set command parameter types (#8536 )
2022-08-20 16:21:39 +01:00