Commit Graph

7305 Commits

Author SHA1 Message Date
Sebastian Rittau
a74df38df0 Message.get_content_charset() returns None by default (#9344) 2022-12-09 07:19:18 -08:00
Avasam
307dd08a6e Bump pyinstaller to 5.7.* (#9343) 2022-12-08 10:45:30 +00:00
Alex Waygood
40bfc266f7 3rd-party stubtest: run on Python 3.10 (#9342) 2022-12-07 20:25:57 +00:00
Alex Waygood
0220577a31 Remove stubs for certifi (#9341)
Closes #8048
2022-12-07 08:06:35 -08:00
github-actions[bot]
0eecaf4716 [stubsabot] Make google-cloud-ndb a namespace package; bump pinned version to 2.0.* (#9339)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-12-07 10:16:16 +00:00
github-actions[bot]
b1554be2c0 [stubsabot] Bump flake8-bugbear to 22.12.6 (#9340)
Release: https://pypi.org/pypi/flake8-bugbear/22.12.6
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.10.27...22.12.6

Stubsabot analysis of the diff between the two releases:
 - 1 public Python file has been added: `tests/b905_py310.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: 55.
 - Total lines of Python code deleted: 9.

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-12-07 00:15:30 +00:00
Eddie Darling
0880741ba3 Update jsonschema protocols.pyi (#9295)
These take in an instance, which need not be a JSON object. 
They could for example be arrays. 
See [this example](https://python-jsonschema.readthedocs.io/en/stable/api/jsonschema/protocols/#jsonschema.protocols.Validator.iter_errors) on the jsonschema docs.

```python
>>> schema = {"maxItems" : 2}
>>> Draft202012Validator(schema).is_valid([2, 3, 4])
False
```
2022-12-06 21:08:11 +00:00
Alex Waygood
fc69819a89 Don't run mypy_primer on stubsabot PRs (#9332)
We can be fairly confident that PRs updating only a `METADATA.toml` file will never produce an interesting `mypy_primer` diff.
2022-12-05 23:47:59 -08:00
Mike Placentra
89fb1d5521 fix type for multiprocessing.log_to_stderr(): allow int level (#9334)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2022-12-05 22:44:26 +00:00
Avasam
0c3cf8f5e6 More pywin32 stub completion (#9308)
Completed based on usage of the following libraries in mypy_primer:
- apprise
- comtypes
As well as some of the most popular libraries that use both pywin32 and mypy (all over 1k stars on github):
- certbot
- anki
- flexget
- monkey
- twisted
- salt

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-12-05 22:23:35 +00:00
Huazuo Gao
cdf5cc34f2 types: fix signature of coroutine (#9333) 2022-12-05 12:00:32 -08:00
Ilya Konstantinov
578cebe1c5 protobuf: Annotate well_known_types.pyi (#9323)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-12-05 18:49:55 +00:00
AMBER MURTUZA ANSARI
503eab31d7 fpdf:annotation of underline, font_style, font_streching (#9327)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-12-05 15:02:15 +00:00
Josiah Outram Halstead
540e0b0aa4 PIL: fix image convert palette type (#9331) 2022-12-05 13:36:30 +00:00
Steve Dignam
1c940e8914 PIL: add optimize param to save (#9328) 2022-12-05 00:16:54 +00:00
Benjamin Jones
d084079fc3 openpyxl stub: add open as an alias for load_workbook (#9324) 2022-12-02 23:24:48 +00:00
Avasam
c6b9b4ce85 Stricter settings in mypy_test (#9294) 2022-12-02 18:55:55 +00:00
Nikita Sobolev
fce46d22ff Mark dateparser as complete (#9312)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-12-02 18:50:21 +00:00
Jelle Zijlstra
00483b63e6 http.client.HTTPConnection.request accepts str as the body (#9322)
See code around ab02262cd0/Lib/http/client.py (L1328)
2022-12-02 10:49:33 -08:00
Nikita Sobolev
bc1da6a748 Remove unused code from pytype_test.py (#9317) 2022-12-02 18:33:24 +00:00
github-actions[bot]
c6126b5f52 [stubsabot] Mark chardet as obsolete since 5.1.0 (#9318)
Release: https://pypi.org/pypi/chardet/5.1.0
Homepage: https://github.com/chardet/chardet
Diff: https://github.com/chardet/chardet/compare/5.0.0...5.1.0

Co-authored-by: stubsabot <>
2022-12-01 18:24:26 -08:00
github-actions[bot]
069dbffba9 [stubsabot] Bump ujson to 5.6.* (#9319)
Release: https://pypi.org/pypi/ujson/5.6.0
Homepage: https://github.com/ultrajson/ultrajson
Diff: https://github.com/ultrajson/ultrajson/compare/5.5.0...5.6.0

Stubsabot analysis of the diff between the two releases:
 - Total lines of Python code added: 13.
 - Total lines of Python code deleted: 0.
2022-12-01 16:30:41 -08:00
AMBER MURTUZA ANSARI
ba0e073430 fpdf2: annotate draw_color, fill_color, text_color (#9282) 2022-12-01 20:46:36 +00:00
Nikita Sobolev
3c9d1bd942 Mark httplib2 as complete (#9311)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-12-01 15:21:01 +00:00
Nikita Sobolev
91c72cffd1 Remove dockerfile-parse from pyright's exclude (#9310)
Remove unnecessary dependency on types-six
2022-12-01 13:05:57 +00:00
Nikita Sobolev
8ac9f1eb56 Mark humanfriendly as complete (#9309) 2022-12-01 12:55:39 +00:00
github-actions[bot]
be4bfd660e [stubsabot] Bump google-cloud-ndb to 1.12.* (#9307)
Release: https://pypi.org/pypi/google-cloud-ndb/1.12.0
Homepage: https://github.com/googleapis/python-ndb
Diff: https://github.com/googleapis/python-ndb/compare/v1.11.2...v1.12.0

Stubsabot analysis of the diff between the two releases:
 - 1 public Python file has been added: `.kokoro/noxfile.py`.
 - 0 files included in typeshed's stubs have been deleted.
 - 6 files included in typeshed's stubs have been modified or renamed: `google/cloud/ndb/_datastore_api.py`, `google/cloud/ndb/context.py`, `google/cloud/ndb/django_middleware.py`, `google/cloud/ndb/model.py`, `google/cloud/ndb/msgprop.py`, `google/cloud/ndb/tasklets.py`.
 - Total lines of Python code added: 377.
 - Total lines of Python code deleted: 63.

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-12-01 00:25:56 +00:00
PyHedgehog
87d2683ef9 Add stubs for dockerfile-parse (#9305)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2022-11-30 22:27:40 +00:00
Avasam
ee69f6085e Added complete Xlib stubs (#9279)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-11-30 16:10:34 +00:00
Avasam
5c3f10e1df Deduplicate pinned pyright version (#9299)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-11-30 08:52:55 +00:00
Nikita Sobolev
df0a062b34 Mark passlib as completed (#9302) 2022-11-29 12:07:17 +00:00
Avasam
4366ff1e0b Improve Github syntax highlighting (#9301) 2022-11-29 09:19:28 +00:00
Nikita Sobolev
579a3aa70a Mark PyAutoGUI as complete (#9300) 2022-11-29 09:17:13 +00:00
Avasam
4a6d277733 Simplify pyrightconfigs by removing redundant keys (#9293) 2022-11-28 18:35:35 +00:00
Hoël Bagard
a132ff215d Add stubs for pycocotools (#9086)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-11-28 12:46:26 +00:00
Nikita Sobolev
ea2ccc3c21 Improve annotations for __instancecheck__, __subclasscheck__ (#9291) 2022-11-28 11:15:02 +00:00
Nikita Sobolev
c6800d1214 sqlalchemy: add return types for known magic methods (#9290) 2022-11-27 23:55:36 -08:00
Nikita Sobolev
a29624ee42 [redis] update to 4.3.5 (#9284) 2022-11-27 22:23:51 -08:00
Nikita Sobolev
7806607df9 Improve error message of Unrecognised platforms specified (#9283) 2022-11-26 14:46:43 +01:00
Jelle Zijlstra
9452ce539c xmlrpc: improve bytes handling (#9166) 2022-11-25 19:33:53 -08:00
Maxwell G
553e7d46f0 Add aiofiles.os.scandir (#9280) 2022-11-25 18:36:00 -08:00
Avasam
087917f2b8 Space out pytype errors (#9281) 2022-11-26 01:32:08 +01:00
Yevhenii Hyzyla
b3bb9038f8 Add methods for Catalog and Message from babel package (#9278)
https://github.com/python/typeshed/issues/9277
2022-11-25 18:36:51 +00:00
Alex Waygood
95c74ba7e1 Minor improvements to tests/regr_test.py (#9274) 2022-11-25 15:03:20 +00:00
Alex Waygood
e2ad6fbe62 Add color back to CI output (#9276) 2022-11-25 15:01:31 +00:00
Alex Waygood
350b3c57da Bump flake8 and flake8-noqa (#9275) 2022-11-25 11:51:00 +00:00
github-actions[bot]
0c03f099ab Bump caldav to 0.11.* (#9253)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2022-11-25 11:29:30 +00:00
github-actions[bot]
5453c97753 Bump protobuf to 4.21.*; delete google/__init__.pyi (#8360)
This major version bump of the stubs package deletes google/__init__.py, which does not exist at runtime, and caused problems for several users. Mypy now has --namespace-packages enabled by default, which should hopefully mean that this causes minimal pain.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-11-25 11:28:56 +00:00
github-actions[bot]
21f26ab4f3 [stubsabot] Bump pyvmomi to 8.0.* (#9271)
Release: https://pypi.org/pypi/pyvmomi/8.0.0.1
Homepage: https://github.com/vmware/pyvmomi
Diff: https://github.com/vmware/pyvmomi/compare/v7.0.3...v8.0.0.1

Stubsabot analysis of the diff between the two releases:
 - 3 public Python files have been added: `pyVmomi/Feature.py`, `pyVmomi/Security.py`, `pyVmomi/VmomiJSONEncoder.py`.
 - 0 files included in typeshed's stubs have been deleted.
 - 1 file included in typeshed's stubs has been modified or renamed: `pyVmomi/__init__.py`.
 - Total lines of Python code added: 6229.
 - Total lines of Python code deleted: 5341.

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-11-25 10:12:24 +00:00
Nikita Sobolev
bdf036d516 check_consistent.py: Add check ensuring packages are not installed for unspecified platforms (#9265) 2022-11-25 10:11:59 +00:00