feat: Add a little bit of typing to google.api_core.retry by asottile-sentry · Pull Request #453 · googleapis/python-api-core · GitHub
Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

feat: Add a little bit of typing to google.api_core.retry#453

Merged
parthea merged 3 commits into
googleapis:mainfrom
asottile-sentry:type-retry-a-bit
Sep 1, 2023
Merged

feat: Add a little bit of typing to google.api_core.retry#453
parthea merged 3 commits into
googleapis:mainfrom
asottile-sentry:type-retry-a-bit

Conversation

@asottile-sentry

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)

@google-cla

google-cla Bot commented Sep 26, 2022

Copy link
Copy Markdown

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

from __future__ import unicode_literals
from __future__ import annotations

Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@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

Copy link
Copy Markdown
Contributor Author

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

@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 previously approved these changes Sep 1, 2023

@parthea parthea left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment thread google/api_core/retry.py

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@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 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
@asottile-sentry asottile-sentry deleted the type-retry-a-bit branch September 5, 2023 13:29
This was referenced May 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants