Skip to content

mypy presubmit fails at HEAD with mypy==1.15 #799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
parthea opened this issue Feb 25, 2025 · 0 comments · Fixed by #801
Closed

mypy presubmit fails at HEAD with mypy==1.15 #799

parthea opened this issue Feb 25, 2025 · 0 comments · Fixed by #801
Assignees

Comments

@parthea
Copy link
Collaborator

parthea commented Feb 25, 2025

The mypy nox session started failing on February 4th with mypy==1.15.0 https://pypi.org/project/mypy/1.15.0/

partheniou@partheniou-vm-3:~/git/python-api-core$ nox -s mypy
nox > Running session mypy
nox > Creating virtual environment (virtualenv) using python3.10 in .nox/mypy
nox > python -m pip install '.[grpc,async_rest]' mypy
nox > python -m pip install types-setuptools types-requests types-protobuf types-dataclasses 'types-mock; python_version=='"'"'3.7'"'"''
nox > mypy google tests
pyproject.toml: [mypy]: python_version: Python 3.7 is not supported (must be 3.8 or higher)
google/api_core/retry/retry_streaming_async.py:65: error: ParamSpec components are not allowed here  [valid-type]
google/api_core/retry/retry_streaming_async.py:66: error: ParamSpec components are not allowed here  [valid-type]
google/api_core/retry/retry_streaming.py:62: error: ParamSpec components are not allowed here  [valid-type]
google/api_core/retry/retry_streaming.py:63: error: ParamSpec components are not allowed here  [valid-type]
Found 4 errors in 2 files (checked 110 source files)
nox > Command mypy google tests failed with exit code 1
nox > Session mypy failed.
parthea added a commit that referenced this issue Feb 25, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
parthea added a commit that referenced this issue Feb 25, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
parthea added a commit that referenced this issue Feb 25, 2025
* build: use mypy<1.15.0 until #799 is fixed

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea added a commit that referenced this issue Feb 25, 2025
* build: Add presubmits for Python 3.14 pre-release

* build: use mypy<1.15.0 until #799 is fixed

* update required checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants