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(firestore): remove usage of typing_extensions by shokkunrf · Pull Request #17357 · googleapis/google-cloud-python

Conversation

@shokkunrf

@shokkunrf shokkunrf commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Fixes #17244 🦕

This PR addresses the google-cloud-firestore portion of #17244 ("Remove usage of typing_extensions in google-cloud-python") by replacing the only typing_extensions import in this package with the stdlib typing equivalents.

Summary

google/cloud/firestore_v1/async_transaction.py was the sole module in google-cloud-firestore importing from typing_extensions. All three names it imports (Concatenate, ParamSpec, TypeVar) are available in the stdlib typing module since Python 3.10, and setup.py declares python_requires=">=3.10", so the import can be moved to the stdlib without any compatibility loss.

Changes

packages/google-cloud-firestore/google/cloud/firestore_v1/async_transaction.py:

  • Add Concatenate, ParamSpec, TypeVar to the existing from typing import (...) block (kept alphabetical).
  • Remove the from typing_extensions import Concatenate, ParamSpec, TypeVar line.

Why this works

Symbol Stdlib typing availability
Concatenate Python 3.10+
ParamSpec Python 3.10+
TypeVar Always available

Verification

In a clean venv with only google-cloud-firestore installed (no typing-extensions), from google.cloud.firestore_v1 import async_transaction now succeeds — confirming the dependency on typing-extensions is fully removed.

Scope note

Other packages in this monorepo also use typing_extensions (google-api-core, google-cloud-bigtable, google-cloud-spanner, bigframes). Each has its own python_requires and set of imported symbols (notably Self, which requires Python 3.11+ in the stdlib), so this PR is scoped to google-cloud-firestore only. Let me know if you'd like me to follow up with PRs for any of the others — happy to.

Sorry, something went wrong.

Uh oh!

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

gemini-code-assist[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction
@shokkunrf
fix(firestore): remove usage of typing_extensions
0844b55
@shokkunrf
shokkunrf requested a review from a team as a code owner June 3, 2026 12:24
@google-cla

google-cla Bot commented Jun 3, 2026

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.

gemini-code-assist[bot]
gemini-code-assist Bot reviewed Jun 3, 2026
View reviewed changes

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request refactors the imports in async_transaction.py by moving Concatenate, ParamSpec, and TypeVar from typing_extensions to the standard typing library. There are no review comments, and I have no additional feedback to provide.

Sorry, something went wrong.

Uh oh!

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

All reactions
@parthea

parthea commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Hi @shokkunrf, Thanks for opening a PR! Please could you sign the CLA? #17357 (comment)

shokkunrf reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@parthea
parthea marked this pull request as draft June 3, 2026 14:35
@parthea parthea assigned shokkunrf Jun 3, 2026
@parthea parthea added kokoro:force-run Add this label to force Kokoro to re-run the tests. kokoro:run Add this label to force Kokoro to re-run the tests. labels Jun 3, 2026
@yoshi-kokoro yoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jun 3, 2026
@parthea parthea mentioned this pull request Jun 3, 2026
fix: remove usage of typing_extensions where possible #17358
Closed
@shokkunrf

shokkunrf commented Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

@googlebot I signed it!

parthea reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@shokkunrf
shokkunrf marked this pull request as ready for review June 3, 2026 15:29
parthea
parthea approved these changes Jun 3, 2026
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 for the fix, @shokkunrf!

Sorry, something went wrong.

Uh oh!

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

All reactions
@shokkunrf

shokkunrf commented Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

@googlebot I signed it!

All reactions

Sorry, something went wrong.

Uh oh!

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

@parthea
parthea enabled auto-merge (squash) June 3, 2026 15:31
@parthea parthea assigned hebaalazzeh and unassigned shokkunrf Jun 3, 2026
@parthea
parthea requested a review from hebaalazzeh June 3, 2026 15:38
hebaalazzeh
hebaalazzeh approved these changes Jun 3, 2026
View reviewed changes

@hebaalazzeh hebaalazzeh 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.

Looks good to me. Nice cleanup!

Sorry, something went wrong.

Uh oh!

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

All reactions
@parthea
parthea merged commit cdaf213 into googleapis:main Jun 3, 2026
25 of 27 checks passed

Uh oh!

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

@shokkunrf

shokkunrf commented Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the quick review and merge!

parthea reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@release-please release-please Bot mentioned this pull request Jun 17, 2026
chore(main): release google-cloud-firestore 2.28.0 #17499
Closed
@release-please release-please Bot mentioned this pull request Jun 25, 2026
chore: release main #17543
Merged
parthea pushed a commit that referenced this pull request Jun 25, 2026
@release-please
chore: release main (#17543)
900d51f
🤖 I have created a release *beep* *boop*
---


<details><summary>gapic-generator: 1.36.0</summary>

##
[1.36.0](gapic-generator-v1.35.0...gapic-generator-v1.36.0)
(2026-06-25)


### Features

* **mypy:** centralize mypy.ini and update templates
([#17523](#17523))
([3a67b7f](3a67b7f))
</details>

<details><summary>google-ads-datamanager: 0.9.1</summary>

##
[0.9.1](google-ads-datamanager-v0.9.0...google-ads-datamanager-v0.9.1)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

<details><summary>google-analytics-admin: 0.30.1</summary>

##
[0.30.1](google-analytics-admin-v0.30.0...google-analytics-admin-v0.30.1)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

<details><summary>google-apps-chat: 0.10.1</summary>

##
[0.10.1](google-apps-chat-v0.10.0...google-apps-chat-v0.10.1)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

<details><summary>google-auth: 2.55.1</summary>

##
[2.55.1](google-auth-v2.55.0...google-auth-v2.55.1)
(2026-06-25)


### Bug Fixes

* **auth:** lower regional access boundary logs from warning to debug.
([#17571](#17571))
([1ef4183](1ef4183)),
closes
[#17515](#17515)
</details>

<details><summary>google-cloud-bigtable: 2.40.0</summary>

##
[2.40.0](google-cloud-bigtable-v2.39.0...google-cloud-bigtable-v2.40.0)
(2026-06-25)


### Features

* regenerate google-cloud-bigtable
([#17575](#17575))
([bd782cf](bd782cf))


### Bug Fixes

* **bigtable:** populate Value type in _format_execute_query_view_params
([#17547](#17547))
([8cb77d9](8cb77d9))
</details>

<details><summary>google-cloud-build: 3.38.0</summary>

##
[3.38.0](google-cloud-build-v3.37.0...google-cloud-build-v3.38.0)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

<details><summary>google-cloud-ces: 0.7.1</summary>

##
[0.7.1](google-cloud-ces-v0.7.0...google-cloud-ces-v0.7.1)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

<details><summary>google-cloud-chronicle: 0.6.1</summary>

##
[0.6.1](google-cloud-chronicle-v0.6.0...google-cloud-chronicle-v0.6.1)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

<details><summary>google-cloud-compute: 1.49.0</summary>

##
[1.49.0](google-cloud-compute-v1.48.0...google-cloud-compute-v1.49.0)
(2026-06-25)


### Features

* regenerate google-cloud-compute
([#17576](#17576))
([140d86f](140d86f))
</details>

<details><summary>google-cloud-dataform: 0.11.1</summary>

##
[0.11.1](google-cloud-dataform-v0.11.0...google-cloud-dataform-v0.11.1)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

<details><summary>google-cloud-dataproc: 5.29.0</summary>

##
[5.29.0](google-cloud-dataproc-v5.28.0...google-cloud-dataproc-v5.29.0)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

<details><summary>google-cloud-dialogflow: 2.49.0</summary>

##
[2.49.0](google-cloud-dialogflow-v2.48.0...google-cloud-dialogflow-v2.49.0)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

<details><summary>google-cloud-dialogflow-cx: 2.7.0</summary>

##
[2.7.0](google-cloud-dialogflow-cx-v2.6.0...google-cloud-dialogflow-cx-v2.7.0)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

<details><summary>google-cloud-discoveryengine: 0.20.1</summary>

##
[0.20.1](google-cloud-discoveryengine-v0.20.0...google-cloud-discoveryengine-v0.20.1)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

<details><summary>google-cloud-firestore: 2.28.0</summary>

##
[2.28.0](google-cloud-firestore-v2.27.0...google-cloud-firestore-v2.28.0)
(2026-06-25)


### Features

* **firestore:** drop Python 3.7-3.9 support and regenerate
([#17247](#17247))
([b11224f](b11224f))
* regenerate google-cloud-[e-i] packages
([#17079](#17079))
([5239b18](5239b18))
* regenerate google-cloud-firestore
([#17577](#17577))
([57ebaa3](57ebaa3))


### Bug Fixes

* **firestore:** Imropve improper pipeline aliases
([#16651](#16651))
([f728bd6](f728bd6))
* **firestore:** remove usage of typing_extensions
([#17357](#17357))
([cdaf213](cdaf213))
* make test_utils unique_resource_id parallel-safe
([#17440](#17440))
([ac1f5d5](ac1f5d5))
</details>

<details><summary>google-cloud-network-management: 1.37.0</summary>

##
[1.37.0](google-cloud-network-management-v1.36.0...google-cloud-network-management-v1.37.0)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

<details><summary>google-cloud-network-security: 0.13.2</summary>

##
[0.13.2](google-cloud-network-security-v0.13.1...google-cloud-network-security-v0.13.2)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

<details><summary>google-cloud-network-services: 0.10.1</summary>

##
[0.10.1](google-cloud-network-services-v0.10.0...google-cloud-network-services-v0.10.1)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

<details><summary>google-cloud-oracledatabase: 0.6.1</summary>

##
[0.6.1](google-cloud-oracledatabase-v0.6.0...google-cloud-oracledatabase-v0.6.1)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

<details><summary>google-cloud-spanner: 3.69.0</summary>

##
[3.69.0](google-cloud-spanner-v3.68.0...google-cloud-spanner-v3.69.0)
(2026-06-25)


### Features

* regenerate google-cloud-spanner
([#17578](#17578))
([39b252f](39b252f))
</details>

<details><summary>google-cloud-vectorsearch: 0.11.1</summary>

##
[0.11.1](google-cloud-vectorsearch-v0.11.0...google-cloud-vectorsearch-v0.11.1)
(2026-06-25)


### Features

* update googleapis and regenerate
([#17554](#17554))
([03d0574](03d0574))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@parthea parthea parthea approved these changes
+2 more reviewers
@gemini-code-assist gemini-code-assist[bot] gemini-code-assist[bot] left review comments
@hebaalazzeh hebaalazzeh hebaalazzeh approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

@hebaalazzeh hebaalazzeh

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Remove usage of typing_extensions in google-cloud-python

Uh oh!

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

4 participants

@shokkunrf @parthea @hebaalazzeh @yoshi-kokoro
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.