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 — feat: Add a little bit of typing to google.api_core.retry by asottile-sentry · Pull Request #453 · googleapis/python-api-core

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

Conversation

@asottile-sentry

@asottile-sentry asottile-sentry commented Sep 26, 2022

Copy link
Copy Markdown
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea (N/A)
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary) (N/A)

Sorry, something went wrong.

Uh oh!

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

All reactions
@google-cla

google-cla Bot commented Sep 26, 2022

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

All reactions

Sorry, something went wrong.

Uh oh!

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

@product-auto-label product-auto-label Bot added the size: s Pull request size is small. label Sep 26, 2022
asottile-sentry
asottile-sentry commented Sep 26, 2022
View reviewed changes
Comment thread google/api_core/retry.py
"""

from __future__ import unicode_literals
from __future__ import annotations

@asottile-sentry asottile-sentry Sep 26, 2022

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this library has python_requires >= 3.7 so (1) unicode_literals does nothing and (2) this is the first version which supports __future__.annotations

it might be a good idea to run https://github.com/asottile/pyupgrade on this codebase to remove the remaining python 2isms

Sorry, something went wrong.

Uh oh!

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

All reactions

@parthea parthea Sep 1, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I've captured this TODO in https://github.com/googleapis/python-api-core/issues/524

Sorry, something went wrong.

Uh oh!

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

All reactions
@asottile-sentry
asottile-sentry marked this pull request as ready for review September 26, 2022 17:28
@asottile-sentry
asottile-sentry requested review from a team September 26, 2022 17:28
@asottile-sentry

asottile-sentry commented Nov 11, 2022

Copy link
Copy Markdown
Contributor Author

👋 I've rebased this to resolve conflicts (again) -- could it get reviewed?

All reactions

Sorry, something went wrong.

Uh oh!

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

asottile-sentry and others added 2 commits July 6, 2023 16:40
@asottile-sentry
ref(typing): add a little bit of typing to google.api_core.retry
e13e46c
@parthea
Merge branch 'main' into type-retry-a-bit
c29a654
@parthea parthea changed the title add a little bit of typing to google.api_core.retry feat: Add a little bit of typing to google.api_core.retry Aug 30, 2023
@parthea parthea self-assigned this Aug 30, 2023
@parthea parthea mentioned this pull request Jan 12, 2026
Use pyupgrade to upgrade all syntax to python 3 googleapis/google-cloud-python#15071
Closed
parthea
parthea previously approved these changes Sep 1, 2023
View reviewed changes

@parthea parthea left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @asottile-sentry!

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread google/api_core/retry.py
"""

from __future__ import unicode_literals
from __future__ import annotations

@parthea parthea Sep 1, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I've captured this TODO in https://github.com/googleapis/python-api-core/issues/524

Sorry, something went wrong.

Uh oh!

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

All reactions
@parthea
coverage
3964536
@parthea parthea added the automerge: exact Summon MOG for automerging, but approvals need to be against the latest commit label Sep 1, 2023
@gcf-merge-on-green
gcf-merge-on-green Bot dismissed parthea’s stale review September 1, 2023 14:02

This review does not reference the most recent commit, and you are using the secure version of merge-on-green. Please re-review the most recent commit.

parthea
parthea approved these changes Sep 1, 2023
View reviewed changes
@parthea
parthea merged commit 2477ab9 into googleapis:main Sep 1, 2023
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge: exact Summon MOG for automerging, but approvals need to be against the latest commit label Sep 1, 2023
@release-please release-please Bot mentioned this pull request Sep 1, 2023
chore(main): release 2.12.0 #521
Merged
@asottile-sentry
asottile-sentry deleted the type-retry-a-bit branch September 5, 2023 13:29
This was referenced May 30, 2025
chore(main): release 2.0.0 #822
Closed
chore(main): release 2.0.0 #823
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@parthea parthea parthea approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

@parthea parthea

Labels

size: s Pull request size is small.

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

@asottile-sentry @parthea
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.