GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: suppress type error for fallback def of OptionalRetry by tseaver · Pull Request #1065 · googleapis/gapic-generator-python

This repository was archived by the owner on Aug 25, 2026. It is now read-only.

Conversation

@tseaver

@tseaver tseaver commented Nov 3, 2021

Copy link
Copy Markdown
Contributor

Introduced in #1032.

mypy balks at rebinding a typename in the fallback:

google/cloud/datastore_v1/services/datastore/client.py:38: error: Cannot assign multiple types to name "OptionalRetry" without an explicit "Type[...]" annotation

Since the object fallback is only for older versions of google-api-core, which needed to be ignored anyway, ignoring the reassignment is safe.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tseaver
fix: suppress type error for fallback def of OptionalRetry
054f537
Introduced in #1032.
@tseaver
tseaver requested review from a team, busunkim96, software-dov and tswast November 3, 2021 14:56
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 3, 2021
busunkim96
busunkim96 approved these changes Nov 3, 2021
View reviewed changes
@tseaver tseaver mentioned this pull request Nov 3, 2021
Add a py.typed file for submodule googleapis/python-datastore#240
Closed
@tseaver
fix: skip coverage of fallback
5b3af94
@tseaver
tseaver merged commit e47faa6 into master Nov 3, 2021
@tseaver
tseaver deleted the 1032-fix-optional-retry-typing-moar branch November 3, 2021 15:34
This was referenced Jan 18, 2022
chore(master): release reverted #1133
Merged
chore(master): release 0.40.0 #1138
Closed
chore(master): release 0.39.1 #1146
Closed
This was referenced Jan 26, 2022
chore(main): release 0.39.1 #1160
Closed
chore(main): release 0.39.1 #1162
Closed
chore(main): release 0.61.0 #1163
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@tswast tswast Awaiting requested review from tswast
@software-dov software-dov Awaiting requested review from software-dov
1 more reviewer
@busunkim96 busunkim96 busunkim96 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@tseaver @busunkim96
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.