Commit Graph

1307 Commits

Author SHA1 Message Date
Alex Waygood
60789273a2 Improve pyright verification of third-party test cases in CI (#9650)
Co-authored-by: Avasam <samuel.06@hotmail.com>
2023-02-07 11:53:54 +00:00
Alex Waygood
0ef9c3f8e8 Enable flake8-pyi's Y037 (#9686) 2023-02-06 19:01:02 -08:00
Avasam
29d9aa9b28 Complete stubtest and fix Any subclassing in tqdm (#9525) 2023-02-07 00:15:44 +00:00
Alex Waygood
efee70abfa Bump mypy to 1.0 (#9684) 2023-02-06 15:57:17 -08:00
Nikita Sobolev
f7cb7f33b2 Use OSError instead of IOError (#9683) 2023-02-06 18:56:32 +00:00
Alex Waygood
262f2067aa Update paramiko stubs to 3.0.* (#9667) 2023-02-06 07:01:50 -08:00
Alex Waygood
191afbc559 Update invoke stubs to 2.0.* (#9669) 2023-02-06 06:54:21 -08:00
Jelle Zijlstra
c65a87481d colorama: Preserve input type for wrap_stream (#9677) 2023-02-06 06:50:21 -08:00
Jukka Lehtosalo
bba1c67610 Update mypy_extensions stubs to 1.0.x (#9675) 2023-02-04 12:54:39 +00:00
Alex Waygood
48cffeeea6 Update caldav stubs to 1.0.* (#9668) 2023-02-03 06:38:16 -08:00
Juan Amari
ce8c82a27c [redis] Initial stubs for redis.asyncio.cluster (#9468)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2023-02-03 13:27:39 +00:00
Alex Waygood
f94d496626 Update cachetools stubs to 5.3.* (#9666) 2023-02-03 12:20:38 +00:00
hasier
c2e638e222 Fix python-jose unverified jws and jwt functions (#9662) 2023-02-03 11:53:00 +00:00
Sebastian Rittau
dc389eafe7 Update setuptools to 67.1 (#9664)
Replace some instances of `Any` with `Incomplete` or proper types.
2023-02-03 11:43:35 +00:00
Avasam
f1aede7162 Manual changes of Any union to Incomplete in stubs folder (#9566)
- ClassVar[Any | None]
- Missed previous changes due to alias
- Manual review of leftover Any unions (`| Any` and `Any |`)
2023-02-02 06:48:41 -08:00
Peter Pentchev
1e5d72314f setuptools: add pkg_resources.Requirement.url (#9657)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2023-02-01 23:44:08 -08:00
hamdanal
250befdef0 Fix optional USB attributes in pyserial's ListPortInfo (#9654)
Some USB specific attributes in pyserial's [`serial.tools.list_port_common.ListPortInfo`](https://github.com/python/typeshed/blob/main/stubs/pyserial/serial/tools/list_ports_common.pyi#L11-L24) class are not always available. They depend on the USB device and its driver correctly reporting these attributes. I discovered this recently with a new device that does not report its serial number. Only the Vendor ID `vid` and Product ID `pid` are guaranteed (This can be seen [here](https://github.com/pyserial/pyserial/blob/master/serial/tools/list_ports_linux.py#L52-L62) where `vid` and `pid` are always cast as `int` while other attributes are left as `str | None` for USB devices). 
This is a follow up to #9347 and the discussion at https://github.com/python/typeshed/pull/9347#issuecomment-1358245865
2023-02-01 14:03:24 -08:00
Alex Waygood
23e3dc9bd8 Fix stubtest errors on beautifulsoup4 (#9648)
Fixes #9645.
2023-02-01 06:06:45 -08:00
Alex Waygood
8e7b78a8e8 Bump black to 23.1.0 (#9647) 2023-02-01 06:06:04 -08:00
Mehdi Drissi
d755da86dd Tensorflow: Add more stubs (#9560)
Co-authored-by: Mehdi Drissi <mdrissi@snapchat.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-31 22:12:41 -08:00
Victor B
1cc8080c7e Add stubs for zstd (#9484)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-01-31 21:41:19 -08:00
Avasam
0e7365a7ef Add defaults for params and constants in pyscreeze (#9641) 2023-01-31 17:56:29 -08:00
Avasam
6c4059f188 Add defaults for params and constants in PyAutoGUI (#9639) 2023-01-31 17:26:03 -08:00
Avasam
b151e2396a Add defaults for params and constants in pyinstaller (#9640) 2023-01-31 17:24:39 -08:00
Rodrigo Silva
064f7af176 PyAutoGui: Add more reexports from pyscreeze (#9634)
Add remaining methods from pyscreeze
2023-01-31 12:03:08 +00:00
Shantanu
398bd90b8e whatthepatch: add parse_git_binary_diff (#9616)
Added in 1.0.4
https://github.com/cscorley/whatthepatch/pull/whatthepatch

Fixes #9615
2023-01-30 00:49:49 +00:00
Alex Waygood
25b3999a10 croniter: complete stubs (#9584) 2023-01-29 11:41:09 -08:00
github-actions[bot]
808a431a57 [stubsabot] Mark SQLAlchemy as obsolete since 2.0.0 (#9595)
Release: https://pypi.org/pypi/SQLAlchemy/2.0.0
Homepage: https://www.sqlalchemy.org
2023-01-29 01:52:18 +00:00
github-actions[bot]
fba8e084b0 [stubsabot] Bump python-slugify to 8.0.* (#9602)
Release: https://pypi.org/pypi/python-slugify/8.0.0
Homepage: https://github.com/un33k/python-slugify
Diff: https://github.com/un33k/python-slugify/compare/v7.0.0...v8.0.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.
 - 2 files included in typeshed's stubs have been modified or renamed: `slugify/__version__.py`, `slugify/slugify.py`.
 - Total lines of Python code added: 3.
 - Total lines of Python code deleted: 3.
2023-01-29 00:27:58 +00:00
wookie184
0024dc4f33 Add some missing Self return annotations in redis (#9601) 2023-01-28 16:47:29 +00:00
Alex Waygood
b316dd947e Bump flake8-pyi to 23.1.1 (#9599) 2023-01-28 07:39:30 -08:00
github-actions[bot]
18c46619f5 [stubsabot] Bump influxdb-client to 1.36.* (#9594)
Release: https://pypi.org/pypi/influxdb-client/1.36.0
Homepage: https://github.com/influxdata/influxdb-client-python
Diff: https://github.com/influxdata/influxdb-client-python/compare/v1.35.0...v1.36.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.
 - 4 files included in typeshed's stubs have been modified or renamed: `influxdb_client/client/flux_table.py`, `influxdb_client/client/write/point.py`, `influxdb_client/client/write_api.py`, `influxdb_client/version.py`.
 - Total lines of Python code added: 151.
 - Total lines of Python code deleted: 16.
2023-01-27 00:30:21 +00:00
github-actions[bot]
99ea07a463 [stubsabot] Bump flake8-docstrings to 1.7.* (#9589)
Release: https://pypi.org/pypi/flake8-docstrings/1.7.0
Homepage: https://github.com/pycqa/flake8-docstrings
Diff: https://github.com/pycqa/flake8-docstrings/compare/1.6.0...1.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: `flake8_docstrings.py`.
 - Total lines of Python code added: 93.
 - Total lines of Python code deleted: 94.

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-26 08:25:20 +01:00
Rodrigo Silva
05eadf5cd8 python-xlib: remove workaround for pytype (#9590) 2023-01-25 17:09:18 -08:00
Alex Waygood
a9b4fa0a32 Fix some stubtest complaints before they happen (#9585)
Add missing objects to various stubs
2023-01-24 21:45:31 +00:00
Sebastian Rittau
4148a7b73e Upgrade bleach stubs for 6.0 (#9583)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-24 15:46:34 +00:00
github-actions[bot]
a8e4b3a018 [stubsabot] Bump flake8-bugbear to 23.1.20 (#9576)
Release: https://pypi.org/pypi/flake8-bugbear/23.1.20
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.1.17...23.1.20
2023-01-21 00:22:24 +00:00
github-actions[bot]
7e40d70cad Bump flake8-bugbear to 23.1.17 (#9569)
Release: https://pypi.org/pypi/flake8-bugbear/23.1.17
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.1.14...23.1.17
2023-01-19 00:22:51 +00:00
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