Commit Graph

1269 Commits

Author SHA1 Message Date
Avasam
6ac24ed923 Replace Any with Incomplete in many places (#9565) 2023-01-18 19:12:46 +00:00
Alex Waygood
a4e3cfefac Improve pre-commit config (#9563)
- Add a few more hooks. These are all very fast, and I've found them useful in other projects:
  - Autofixes:
    - `trailing-whitespace`: fixes trailing whitespace
    - `requirements-txt-fixer`: alphabetises items in `requirements.txt` files
    - `end-of-file-fixer`: makes sure every file ends with a single newline character
    - `mixed-line-ending`: Makes sure Windows users don't accidentally introduce CRLF line endings into a file that uses LF line endings
  - None-autofixes:
    - `check-yaml`: loads YAML files to validate syntax
    - `check-toml`: loads TOML files to validate syntax
    - `check-merge-conflict`: detects merge-conflict strings in files and blocks them from accidentally being committed
    - `check-case-conflict`: checks for files with names that would conflict on a case-insensitive filesystem like MacOS HFS+ or Windows FAT; blocks them from being committed.
  - Change the bot schedule to quarterly, to reduce noisy PRs
  - Change the `black` language target-version to Python 3.10, synching the setting here with the changes that were made to our `pyproject.toml` file in #7538
2023-01-18 06:29:18 -08:00
Sebastian Rittau
eb4d17031f [fpdf2] Restore string default values (#9562)
Cf. #9546
2023-01-18 11:29:32 +00:00
Alex Waygood
4fea314594 Replace Any with Incomplete in many places (#9558) 2023-01-18 08:48:16 +00:00
Avasam
6cb934291f Complete jack-client stub (#9530)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-17 20:31:49 -08:00
Avasam
a991234832 types-Pillow: Allow stubtest to validate PIL.FpxImagePlugin and PIL.MicImagePlugin (#9531) 2023-01-17 16:37:17 +00:00
Avasam
5b0488928d Complete and validate redis.ocsp (use requests, cryptography and pyopenssl) (#9528) 2023-01-17 15:47:26 +00:00
Sebastian Rittau
7b848b4ede Update fpdf2 stubs to 2.6.1 (#9546) 2023-01-17 13:25:41 +01:00
Alex Waygood
2b9f200e7e Reenable flake8-pyi's Y011 and Y015 (#9551) 2023-01-16 22:52:40 +00:00
Alex Waygood
c8c5953aa0 Xlib: Import Pattern from re, not typing (#9544)
Refs https://github.com/PyCQA/flake8-pyi/pull/324
2023-01-16 10:09:06 +00:00
Mehdi Drissi
ebde125d70 Update tensorflow to 2.11 (#9543)
Co-authored-by: Mehdi Drissi <mdrissi@snapchat.com>
2023-01-15 10:28:29 +00:00
github-actions[bot]
eee0ad644d [stubsabot] Bump pytz to 2022.7.1 (#9540)
Release: https://pypi.org/pypi/pytz/2022.7.1
Homepage: http://pythonhosted.org/pytz
2023-01-15 00:51:35 +00:00
github-actions[bot]
7a12cbd8f0 [stubsabot] Bump flake8-bugbear to 23.1.14 (#9541)
Release: https://pypi.org/pypi/flake8-bugbear/23.1.14
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.12.6...23.1.14
2023-01-15 00:50:26 +00:00
Mehdi Drissi
ea0ae2155e Initial tensorflow stubs (#8974)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-14 20:59:29 +00:00
Alex Waygood
0a291da2f0 Pin fpdf2 stubs to 2.6.0 (#9535)
They will need some updates to become compatible with `fpdf2` 2.6.1.

Closes #9524
2023-01-14 18:39:04 +00:00
Avasam
0e36622c72 Resolve stubtest allowlist entries for ldap3 (#9532) 2023-01-14 18:11:17 +00:00
Avasam
85792bca71 Fix stubtest for sqlalchemy.testing.plugin.pytestplugin (#9533) 2023-01-14 13:38:20 +00:00
Avasam
1a9aa3f3fe Update various comments now non-types dependencies are allowed (#9527) 2023-01-14 13:20:04 +00:00
Avasam
cd56735bf0 Allow influxdb-client to be completely tested by stubtest (#9529) 2023-01-14 11:03:21 +00:00
Avasam
1946907451 Allowlist-only fixes for stubtest on Windows (#9522) 2023-01-13 12:45:38 +00:00
Avasam
b216053432 Fix setuptools stubtest on windows (#9521) 2023-01-13 08:16:39 +00:00
Avasam
f84dca699d Fix passlib stubtest on windows (#9523) 2023-01-13 08:14:37 +00:00
Avasam
102a8fa38c Fix some Any subclassing in tqdm (#9505) 2023-01-13 08:10:21 +00:00
Alex Waygood
9a76e5a669 Flask-Migrate: Add Flask as a dependency (#9517) 2023-01-13 00:24:13 +00:00
Alex Waygood
8736b7a565 Flask-Cors: Add Flask as a dependency (#9516) 2023-01-13 00:13:58 +00:00
Jelle Zijlstra
b9eab637cb subprocess: Improve bytes-related types (#9100) 2023-01-11 20:10:26 -08:00
github-actions[bot]
150dc35d43 [stubsabot] Bump braintree to 4.18.* (#9502)
Release: https://pypi.org/pypi/braintree/4.18.0
Homepage: https://developer.paypal.com/braintree/docs/reference/overview
2023-01-12 00:27:21 +00:00
github-actions[bot]
af1a505963 [stubsabot] Bump setuptools to 65.7.* (#9504)
Release: https://pypi.org/pypi/setuptools/65.7.0
Homepage: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v65.6.3...v65.7.0
2023-01-12 00:24:16 +00:00
github-actions[bot]
40f4a726cf [stubsabot] Bump toposort to 1.9 (#9503)
Release: https://pypi.org/pypi/toposort/1.9
2023-01-12 00:20:58 +00:00
Avasam
bc08ecfd10 Overhaul ldap3 stubs (#9470)
Add a dependency on `types-pyasn1`, removing the need to subclass `Any`. Fill in many missing types. Use `Incomplete` rather than `Any` where applicable.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-11 23:14:41 +00:00
Sebastian Rittau
b8f337a452 SQLAlchemy: Annotate text() (#9498) 2023-01-11 15:01:11 +00:00
Avasam
5f08529a4d SQLAlchemy: Remove some implementation details (#9492)
Stubs for the mypy plugin, which aren't useful if you're using typeshed's SQLAlchemy stubs, have been removed.
2023-01-11 11:21:18 +00:00
Avasam
5eb6a692f5 types-pyinstaller: no longer subclass "Any" (#9495) 2023-01-11 09:32:54 +00:00
github-actions[bot]
28bf5c9ddd Bump toposort to 1.8 (#9489) 2023-01-11 00:18:57 +00:00
kasium
5e1632be49 Add stubs for python-datemath (#5765)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-11 00:04:07 +00:00
Alex Waygood
e2d67bf703 Delete stubs for cryptography (#9459)
Typeshed's stubs for `paramiko` and `pyOpenSSL` now depend on the `cryptography` package, which now provides inline types at runtime
2023-01-10 22:16:11 +00:00
Avasam
3c24501bb7 openpyxl: Use "Incomplete" instead of "Any" (#9488) 2023-01-10 17:54:06 +00:00
hamdanal
2c9816e788 Add stubs for netaddr (#9431)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-07 16:22:09 +00:00
Avasam
64e02a05c2 Use pyasn1 in python-jose (#9469) 2023-01-07 15:32:28 +00:00
github-actions[bot]
319597cba4 [stubsabot] Bump ujson to 5.7.* (#9473)
Release: https://pypi.org/pypi/ujson/5.7.0
Homepage: https://github.com/ultrajson/ultrajson
Diff: https://github.com/ultrajson/ultrajson/compare/5.6.0...5.7.0

Stubsabot analysis of the diff between the two releases:
 - Total lines of Python code added: 38.
 - Total lines of Python code deleted: 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 <>
2023-01-07 00:17:21 +00:00
Avasam
b5048a00e6 Add stubs for pyasn1 (#9437)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-06 18:25:48 +00:00
Sebastian Rittau
b1cb9c8a8f Update SQLAlchemy stubs to 1.4.46 (#9464)
Replace `Any` with `Incomplete` where applicable
2023-01-05 19:37:12 +00:00
bzoracler
dfe844c200 gdb-stubs fixes (#9439)
* fix: Union subprinters with `None`

See a4418a9c6f/gdb/python/lib/gdb/printing.py (L52-L55)

* fix: Allow callables as argument to `printer`

See a4418a9c6f/gdb/python/lib/gdb/printing.py (L77) and the description of "function / old way" in the body of `register_pretty_printer`.

The new union's signature is equivalent to `gdb.printing.PrettyPrinter(...).__call__`.

* fix: make `gdb.Block` iterable over `gdb.Symbol`

See https://sourceware.org/gdb/onlinedocs/gdb/Blocks-In-Python.html#Blocks-In-Python:

> A gdb.Block is iterable. The iterator returns the symbols (see [Symbols In Python](https://sourceware.org/gdb/onlinedocs/gdb/Symbols-In-Python.html#Symbols-In-Python)) local to the block.

Implementation of `gdb.BlockIterator` is given in https://github.com/bminor/binutils-gdb/blob/gdb-12-branch/gdb/python/py-block.c. As with many of the other classes, `BlockIterator` is actually imported from the built-in `_gdb` module (a4418a9c6f/gdb/python/lib/gdb/__init__.py (L28)).

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-05 16:07:36 +00:00
Juan Amari
605378de6e Bump redis to 4.4.0 (#9458)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2023-01-05 15:25:11 +00:00
Spencer Brown
3dfc3a383c Add type annotations for babel.messages subpackage (#9455) 2023-01-05 12:39:41 +01:00
Avasam
6a6a677ae3 Improve various jmespath types
Merge `jmespath` from microsoft/python-type-stubs
2023-01-05 11:37:08 +00:00
Avasam
3b94e71280 Add types-html5lib as a dependency of types-beautifulsoup4 (#9462)
Remove the need for subclassing `Any`
2023-01-05 10:40:17 +00:00
Avasam
9041a925cf Add types-docutils as a dependency of types-setuptools (#9460)
Remove the need for subclassing `Any`
2023-01-05 10:37:44 +00:00
Avasam
7fdbb7228c Bump Pillow to 9.4 (#9453)
Closes #9448
2023-01-04 23:38:41 +01:00
github-actions[bot]
8365b1aaef Bump mock to 5.0.* (#9423) 2023-01-04 11:29:58 +01:00