Skip to content
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

mypy reports typing for retry arguments is invalid #1024

Closed
tseaver opened this issue Oct 13, 2021 · 0 comments · Fixed by #1026
Closed

mypy reports typing for retry arguments is invalid #1024

tseaver opened this issue Oct 13, 2021 · 0 comments · Fixed by #1026
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@tseaver
Copy link
Contributor

tseaver commented Oct 13, 2021

E.g., from datastore:

google/cloud/datastore_v1/services/datastore/client.py:331: error: Incompatible default for argument "retry" (default has type "object", argument has type "Retry")
@tseaver tseaver added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2 Moderately-important priority. Fix may not be included in next release. labels Oct 13, 2021
@tseaver tseaver self-assigned this Oct 13, 2021
tseaver added a commit that referenced this issue Oct 13, 2021
fix: import 'ClientOptions' class correctly

Closes #1024
Closes #1025
tseaver added a commit that referenced this issue Oct 13, 2021
fix: import 'ClientOptions' class correctly

Closes #1024
Closes #1025
tseaver added a commit that referenced this issue Oct 13, 2021
* fix: use correct typing for retries

Closes #1024

* fix: import 'ClientOptions' class correctly

Closes #1025

* fix: remove typing from base transport 'operations_client', repair typing for `_operations_client` attr

Closes #1028.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant