Open privkey file in binary mode. by tseaver · Pull Request #362 · googleapis/google-cloud-python
added a commit that referenced this pull request
Nov 10, 2014
tseaver
deleted the
361-open_privkey_file_in_binary_mode
branch
atulep pushed a commit that referenced this pull request
Apr 3, 2023Source-Link: googleapis/synthtool@1b71c10 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
atulep pushed a commit that referenced this pull request
Apr 6, 2023Source-Link: googleapis/synthtool@1b71c10 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
atulep pushed a commit that referenced this pull request
Apr 6, 2023Source-Link: googleapis/synthtool@1b71c10 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
atulep pushed a commit that referenced this pull request
Apr 18, 2023Source-Link: googleapis/synthtool@1b71c10 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea added a commit that referenced this pull request
Jun 4, 2023parthea pushed a commit that referenced this pull request
Jun 4, 2023parthea pushed a commit that referenced this pull request
Jul 6, 2023Source-Link: googleapis/synthtool@703554a Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:94961fdc5c9ca6d13530a6a414a49d2f607203168215d074cdb0a1df9ec31c0b
parthea pushed a commit that referenced this pull request
Sep 22, 2023) Source-Link: googleapis/synthtool@7804ade Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:eede5672562a32821444a8e803fb984a6f61f2237ea3de229d2de24453f4ae7d
parthea pushed a commit that referenced this pull request
Oct 21, 2023parthea pushed a commit that referenced this pull request
Oct 21, 2023parthea added a commit that referenced this pull request
Oct 21, 2023parthea pushed a commit that referenced this pull request
Oct 21, 2023Source-Link: googleapis/synthtool@6fab84a Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request
Oct 22, 2023Source-Link: googleapis/synthtool@1b71c10 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request
Aug 21, 2025Source-Link: googleapis/synthtool@0941ef3 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2f90537dd7df70f6b663cd654b1fa5dee483cf6a4edcfd46072b2775be8a23ec Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request
Sep 16, 2025Source-Link: googleapis/synthtool@0941ef3 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2f90537dd7df70f6b663cd654b1fa5dee483cf6a4edcfd46072b2775be8a23ec Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request
Nov 24, 2025parthea pushed a commit that referenced this pull request
Nov 24, 2025Source-Link: googleapis/synthtool@1b9ad76 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:9db98b055a7f8bd82351238ccaacfd3cda58cdf73012ab58b8da146368330021 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request
Nov 24, 2025This brings our practice in line with `google.cloud.datastore`, which also creates one channel per client. This works around a resource leak issue by not requiring the channel to clean up after itself properly in normal usage. The root cause of that issue seems to lie somewhere in `google.auth`, which is where I will follow up. Fixes #343
parthea pushed a commit that referenced this pull request
Feb 20, 2026When running this library in a headless environment, it's often the case that `print` is not captured and delivered to the end user. By **also** logging the `auth_url`, a user of this library could ensure that the auth url reaches the logs. --------- Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>
ohmayr pushed a commit that referenced this pull request
Feb 26, 2026PR created by the Librarian CLI to initialize a release. Merging this PR will auto trigger a release. Librarian Version: v0.0.0-20260216162532-e323d455c92b Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:160860d189ff1c2f7515638478823712fa5b243e27ccc33a2728669fa1e2ed0c <details><summary>google-ads-datamanager: v0.5.0</summary> ## [v0.5.0](google-ads-datamanager-v0.4.0...google-ads-datamanager-v0.5.0) (2026-02-26) ### Features * add `UserListDirectLicenseService` for creating and managing direct user list licenses (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `PpidData` to `AudienceMember` to support Publisher Provided ID (PPID) in audience member ingestion (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `RemovePpidDataStatus` to `RemoveAudienceMembersStatus` to report the status of PPID data removal (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `AgeRange` and `Gender` enums to support demographic breakdown in marketing insights (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `RemoveUserIdDataStatus` to `RemoveAudienceMembersStatus` to report the status of user ID data removal (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `UserList` resource (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `GOOGLE_AD_MANAGER_AUDIENCE_LINK` to the `AccountType` enum (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `PartnerLinkService` for creating and managing links between advertiser and data partner accounts (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `PartnerLink` resource (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `UserListGlobalLicenseCustomerInfo` resource (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `UserIdData` to `AudienceMember` to support User ID in audience member ingestion (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `MarketingDataInsightsService` for retrieving marketing data insights for a given user list (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add new `ErrorReason` values for licensing, user list operations, and permission checks (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `UserListGlobalLicense` resource (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `UserListDirectLicense` resource (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `UserListGlobalLicenseService` for creating and managing global user list licenses (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `IngestUserIdDataStatus` to `IngestAudienceMembersStatus` to report the status of user ID data ingestion (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `UserListService` for creating and managing user lists (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add `IngestPpidDataStatus` to `IngestAudienceMembersStatus` to report the status of PPID data ingestion (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) ### Bug Fixes * changed `conversion_value` field to be optional in message `Event` (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) ### Documentation * a comment for field `pair_data` in message `AudienceMember` is changed to clarify it is only available to data partners (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * a comment for enum `ErrorReason` is changed to clarify that it is subject to future additions (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * add comments to resources and methods to clarify which are available only to data partners (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) * a comment for message `PairData` is changed to clarify it is only available to data partners (PiperOrigin-RevId: 873059573) ([e40bfd4](e40bfd4d)) </details> <details><summary>google-auth-oauthlib: v1.3.0</summary> ## [v1.3.0](google-auth-oauthlib-v1.2.4...google-auth-oauthlib-v1.3.0) (2026-02-26) ### Features * Log the flow.run_local_server redirect URL (#362) ([84599aa](84599aa0)) ### Bug Fixes * Raise meaningful exception when oauth callback times out (#363) ([adc3ee6](adc3ee60)) </details> <details><summary>google-cloud-ces: v0.1.0</summary> ## [v0.1.0](google-cloud-ces-v0.0.0...google-cloud-ces-v0.1.0) (2026-02-26) ### Features * onboard a new library (PiperOrigin-RevId: 868719126) ([2b38797](2b387976)) * onboard a new library (PiperOrigin-RevId: 874689837) ([e46a4d8](e46a4d8b)) </details> <details><summary>google-cloud-compute: v1.44.0</summary> ## [v1.44.0](google-cloud-compute-v1.43.0...google-cloud-compute-v1.44.0) (2026-02-26) ### Features * Update Compute Engine v1 API to revision 20260106 (#1148) ([d1ce4d3](d1ce4d35)) </details> <details><summary>google-cloud-compute-v1beta: v0.7.0</summary> ## [v0.7.0](google-cloud-compute-v1beta-v0.6.0...google-cloud-compute-v1beta-v0.7.0) (2026-02-26) ### Features * Update Compute Engine v1beta API to revision 20260206 (googleapis/googleapis#1159) ([0900626](09006260)) * Update Compute Engine v1beta API to revision 20260106 (#1147) ([0900626](09006260)) </details> <details><summary>google-cloud-databasecenter: v0.6.0</summary> ## [v0.6.0](google-cloud-databasecenter-v0.5.0...google-cloud-databasecenter-v0.6.0) (2026-02-26) ### Documentation * Replace &#34;GCP&#34; with &#34;Google Cloud&#34; in API comments (PiperOrigin-RevId: 871778449) ([e40bfd4](e40bfd4d)) * Remove single quotes from DatabaseCenter summary. (PiperOrigin-RevId: 871778449) ([e40bfd4](e40bfd4d)) </details> <details><summary>google-cloud-developerconnect: v0.4.0</summary> ## [v0.4.0](google-cloud-developerconnect-v0.3.0...google-cloud-developerconnect-v0.4.0) (2026-02-26) ### Features * Add OAuth flow RPCs (StartOAuth, FinishOAuth) (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new field `organization` is added to message `google.cloud.developerconnect.v1.GitHubEnterpriseConfig` (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new message `google.cloud.developerconnect.v1.insights.ListDeploymentEventsRequest` is added (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new field `http_config` is added to message `google.cloud.developerconnect.v1.Connection` (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new message `google.cloud.developerconnect.v1.insights.ListDeploymentEventsResponse` is added (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new message `google.cloud.developerconnect.v1.FinishOAuthRequest` is added (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new field `projects` is added to message `google.cloud.developerconnect.v1.insights.InsightsConfig` (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new message `google.cloud.developerconnect.v1.SecureSourceManagerInstanceConfig` is added (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new message `google.cloud.developerconnect.v1.FinishOAuthResponse` is added (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new field `google_cloud_run` is added to message `google.cloud.developerconnect.v1.insights.RuntimeConfig` (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new message `google.cloud.developerconnect.v1.StartOAuthRequest` is added (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * Add Cloud Run and App Hub Service runtimes to InsightsConfig (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new field `app_hub_service` is added to message `google.cloud.developerconnect.v1.insights.RuntimeConfig` (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new message `google.cloud.developerconnect.v1.insights.GetDeploymentEventRequest` is added (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new message `google.cloud.developerconnect.v1.insights.AppHubService` is added (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new message `google.cloud.developerconnect.v1.StartOAuthResponse` is added (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new enum value `GEMINI_CODE_ASSIST` is added to enum `google.cloud.developerconnect.v1.GitHubConfig.GitHubApp` (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * Add Gemini Code Assist GitHub App type (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new message `google.cloud.developerconnect.v1.insights.Projects` is added (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * Add HTTP Proxy base URI field (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new field `secure_source_manager_instance_config` is added to message `google.cloud.developerconnect.v1.Connection` (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * Add Secure Source Manager and Generic HTTP Endpoint connection types (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new message `google.cloud.developerconnect.v1.insights.ArtifactDeployment` is added (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new message `google.cloud.developerconnect.v1.insights.GoogleCloudRun` is added (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * Add Deployment Events to Insights API (GetDeploymentEvent, ListDeploymentEvents) (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new message `google.cloud.developerconnect.v1.GenericHTTPEndpointConfig` is added (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * Add Projects field to InsightsConfig for project tracking (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new message `google.cloud.developerconnect.v1.insights.DeploymentEvent` is added (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * A new field `http_proxy_base_uri` is added to message `google.cloud.developerconnect.v1.HTTPProxyConfig` (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) ### Documentation * Updated description for `google.cloud.location.Locations.ListLocations` in YAML (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * Corrected typos in comments for `google.cloud.developerconnect.v1.insights.InsightsConfig` and `google.cloud.developerconnect.v1.insights.ArtifactConfig` (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * Updated comment for `CreateGitRepositoryLink` RPC in `google.cloud.developerconnect.v1.DeveloperConnect` (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) * Updated comments to include regional secret patterns for SecretManager fields in `GitHubConfig`, `OAuthCredential`, `UserCredential`, `GitLabConfig`, `GitLabEnterpriseConfig`, `BitbucketDataCenterConfig`, and `BitbucketCloudConfig` (PiperOrigin-RevId: 872542190) ([e40bfd4](e40bfd4d)) </details> <details><summary>google-cloud-speech: v2.37.0</summary> ## [v2.37.0](google-cloud-speech-v2.36.1...google-cloud-speech-v2.37.0) (2026-02-26) ### Features * adds endpointing sensitivity to streaming recognition features (PiperOrigin-RevId: 871987204) ([e40bfd4](e40bfd4d)) </details> <details><summary>google-cloud-workloadmanager: v0.1.0</summary> ## [v0.1.0](google-cloud-workloadmanager-v0.0.0...google-cloud-workloadmanager-v0.1.0) (2026-02-26) ### Features * onboard a new library (PiperOrigin-RevId: 869327994) ([7161480](71614806)) </details>
parthea pushed a commit that referenced this pull request
Mar 9, 2026[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [typing-extensions](https://togithub.com/python/typing_extensions) ([changelog](https://togithub.com/python/typing_extensions/blob/main/CHANGELOG.md)) | `==4.4.0` -> `==4.8.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>python/typing_extensions (typing-extensions)</summary> ### [`v4.8.0`](https://togithub.com/python/typing_extensions/blob/HEAD/CHANGELOG.md#Release-480-September-17-2023) [Compare Source](https://togithub.com/python/typing_extensions/compare/4.7.1...4.8.0) No changes since 4.8.0rc1. ### [`v4.7.1`](https://togithub.com/python/typing_extensions/blob/HEAD/CHANGELOG.md#Release-471-July-2-2023) [Compare Source](https://togithub.com/python/typing_extensions/compare/4.7.0...4.7.1) - Fix support for `TypedDict`, `NamedTuple` and `is_protocol` on PyPy-3.7 and PyPy-3.8. Patch by Alex Waygood. Note that PyPy-3.7 and PyPy-3.8 are unsupported by the PyPy project. The next feature release of typing-extensions will drop support for PyPy-3.7 and may also drop support for PyPy-3.8. ### [`v4.7.0`](https://togithub.com/python/typing_extensions/blob/HEAD/CHANGELOG.md#Release-470-June-28-2023) [Compare Source](https://togithub.com/python/typing_extensions/compare/4.6.3...4.7.0) - This is expected to be the last feature release supporting Python 3.7, which reaches its end of life on June 27, 2023. Version 4.8.0 will support only Python 3.8.0 and up. - Fix bug where a `typing_extensions.Protocol` class that had one or more non-callable members would raise `TypeError` when `issubclass()` was called against it, even if it defined a custom `__subclasshook__` method. The correct behaviour -- which has now been restored -- is not to raise `TypeError` in these situations if a custom `__subclasshook__` method is defined. Patch by Alex Waygood (backport[https://togithub.com/python/cpython/pull/105976](https://togithub.com/python/cpython/pull/105976)l/105976). ### [`v4.6.3`](https://togithub.com/python/typing_extensions/blob/HEAD/CHANGELOG.md#Release-463-June-1-2023) [Compare Source](https://togithub.com/python/typing_extensions/compare/4.6.2...4.6.3) - Fix a regression introduced in v4.6.0 in the implementation of runtime-checkable protocols. The regression meant that doing `class Foo(X, typing_extensions.Protocol)`, where `X` was a class that had `abc.ABCMeta` as its metaclass, would then cause subsequent `isinstance(1, X)` calls to erroneously raise `TypeError`. Patch by Alex Waygood (backporting the CPython[https://togithub.com/python/cpython/pull/105152](https://togithub.com/python/cpython/pull/105152)l/105152). - Sync the repository's LICENSE file with that of CPython. `typing_extensions` is distributed under the same license as CPython itself. - Skip a problematic test on Python 3.12.0b1. The test fails on 3.12.0b1 due to a bug in CPython, which will be fixed in 3.12.0b2. The `typing_extensions` test suite now passes on 3.12.0b1. ### [`v4.6.2`](https://togithub.com/python/typing_extensions/blob/HEAD/CHANGELOG.md#Release-462-May-25-2023) [Compare Source](https://togithub.com/python/typing_extensions/compare/4.6.1...4.6.2) - Fix use of `@deprecated` on classes with `__new__` but no `__init__`. Patch by Jelle Zijlstra. - Fix regression in version 4.6.1 where comparing a generic class against a runtime-checkable protocol using `isinstance()` would cause `AttributeError` to be raised if using Python 3.7. ### [`v4.6.1`](https://togithub.com/python/typing_extensions/blob/HEAD/CHANGELOG.md#Release-461-May-23-2023) [Compare Source](https://togithub.com/python/typing_extensions/compare/4.6.0...4.6.1) - Change deprecated `@runtime` to formal API `@runtime_checkable` in the error message. Patch by Xuehai Pan. - Fix regression in 4.6.0 where attempting to define a `Protocol` that was generic over a `ParamSpec` or a `TypeVarTuple` would cause `TypeError` to be raised. Patch by Alex Waygood. ### [`v4.6.0`](https://togithub.com/python/typing_extensions/blob/HEAD/CHANGELOG.md#Release-460-May-22-2023) [Compare Source](https://togithub.com/python/typing_extensions/compare/4.5.0...4.6.0) - `typing_extensions` is now documented at https://typing-extensions.readthedocs.io/en/latest/. Patch by Jelle Zijlstra. - Add `typing_extensions.Buffer`, a marker class for buffer types, as proposed by PEP 688. Equivalent to `collections.abc.Buffer` in Python 3.12. Patch by Jelle Zijlstra. - Backport two CPython PRs fixing various issues with `typing.Literal`: [https://togithub.com/python/cpython/pull/23294](https://togithub.com/python/cpython/pull/23294)3294 [https://togithub.com/python/cpython/pull/23383](https://togithub.com/python/cpython/pull/23383)ll/23383. Both CPython PRs were originally by Yurii Karabas, and both were backported to Python >=3.9.1, but no earlier. Patch by Alex Waygood. A side effect of one of the changes is that equality comparisons of `Literal` objects will now raise a `TypeError` if one of the `Literal` objects being compared has a mutable parameter. (Using mutable parameters with `Literal` is not supported by PEP 586 or by any major static type checkers.) - `Literal` is now reimplemented on all Python versions <= 3.10.0. The `typing_extensions` version does not suffer from the bug that was fixed in [https://togithub.com/python/cpython/pull/29334](https://togithub.com/python/cpython/pull/29334)9334. (The CPython bugfix was backported to CPython 3.10.1 and 3.9.8, but no earlier.) - Backport [CPython PR 26067](https://togithub.com/python/cpython/pull/26067) (originally by Yurii Karabas), ensuring that `isinstance()` calls on protocols raise `TypeError` when the protocol is not decorated with `@runtime_checkable`. Patch by Alex Waygood. - Backport several significant performance improvements to runtime-checkable protocols that have been made in Python 3.12 ([https://togithub.com/python/cpython/issues/74690](https://togithub.com/python/cpython/issues/74690)es/74690 for details). Patch by Alex Waygood. A side effect of one of the performance improvements is that the members of a runtime-checkable protocol are now considered “frozen” at runtime as soon as the class has been created. Monkey-patching attributes onto a runtime-checkable protocol will still work, but will have no impact on `isinstance()` checks comparing objects to the protocol. See ["What's New in Python 3.12"](https://docs.python.org/3.12/whatsnew/3.12.html#typing) for more details. - `isinstance()` checks against runtime-checkable protocols now use `inspect.getattr_static()` rather than `hasattr()` to lookup whether attributes exist (backport[https://togithub.com/python/cpython/pull/103034](https://togithub.com/python/cpython/pull/103034)3034). This means that descriptors and `__getattr__` methods are no longer unexpectedly evaluated during `isinstance()` checks against runtime-checkable protocols. However, it may also mean that some objects which used to be considered instances of a runtime-checkable protocol on older versions of `typing_extensions` may no longer be considered instances of that protocol using the new release, and vice versa. Most users are unlikely to be affected by this change. Patch by Alex Waygood. - Backport the ability to define `__init__` methods on Protocol classes, a change made in Python 3.11 (originally implemented[https://togithub.com/python/cpython/pull/31628](https://togithub.com/python/cpython/pull/31628)ll/31628 by Adrian Garcia Badaracco). Patch by Alex Waygood. - Speedup `isinstance(3, typing_extensions.SupportsIndex)` by >10x on Python <3.12. Patch by Alex Waygood. - Add `typing_extensions` versions of `SupportsInt`, `SupportsFloat`, `SupportsComplex`, `SupportsBytes`, `SupportsAbs` and `SupportsRound`. These have the same semantics as the versions from the `typing` module, but `isinstance()` checks against the `typing_extensions` versions are >10x faster at runtime on Python <3.12. Patch by Alex Waygood. - Add `__orig_bases__` to non-generic TypedDicts, call-based TypedDicts, and call-based NamedTuples. Other TypedDicts and NamedTuples already had the attribute. Patch by Adrian Garcia Badaracco. - Add `typing_extensions.get_original_bases`, a backport of [`types.get_original_bases`](https://docs.python.org/3.12/library/types.html#types.get_original_bases), introduced in Python 3.12 (CPython[https://togithub.com/python/cpython/pull/101827](https://togithub.com/python/cpython/pull/101827)l/101827, originally by James Hilton-Balfe). Patch by Alex Waygood. This function should always produce correct results when called on classes constructed using features from `typing_extensions`. However, it may produce incorrect results when called on some `NamedTuple` or `TypedDict` classes that use `typing.{NamedTuple,TypedDict}` on Python <=3.11. - Constructing a call-based `TypedDict` using keyword arguments for the fields now causes a `DeprecationWarning` to be emitted. This matches the behaviour of `typing.TypedDict` on 3.11 and 3.12. - Backport the implementation of `NewType` from 3.10 (where it is implemented as a class rather than a function). This allows user-defined `NewType`s to be pickled. Patch by Alex Waygood. - Fix tests and import on Python 3.12, where `typing.TypeVar` can no longer be subclassed. Patch by Jelle Zijlstra. - Add `typing_extensions.TypeAliasType`, a backport of `typing.TypeAliasType` from PEP 695. Patch by Jelle Zijlstra. - Backport changes to the repr of `typing.Unpack` that were made in order to implement [PEP 692](https://peps.python.org/pep-0692/) (backport of [https://togithub.com/python/cpython/pull/104048](https://togithub.com/python/cpython/pull/104048)4048). Patch by Alex Waygood. ### [`v4.5.0`](https://togithub.com/python/typing_extensions/blob/HEAD/CHANGELOG.md#Release-450-February-14-2023) [Compare Source](https://togithub.com/python/typing_extensions/compare/4.4.0...4.5.0) - Runtime support for PEP 702, adding `typing_extensions.deprecated`. Patch by Jelle Zijlstra. - Add better default value for TypeVar `default` parameter, PEP 696. Enables runtime check if `None` was passed as default. Patch by Marc Mueller ([@​cdce8p](https://togithub.com/cdce8p)). - The `@typing_extensions.override` decorator now sets the `.__override__` attribute. Patch by Steven Troxler. - Fix `get_type_hints()` on cross-module inherited `TypedDict` in 3.9 and 3.10. Patch by Carl Meyer. - Add `frozen_default` parameter on `dataclass_transform`. Patch by Erik De Bonte. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/python-spanner-sqlalchemy). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMS41IiwidXBkYXRlZEluVmVyIjoiMzcuMzEuNSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
parthea pushed a commit that referenced this pull request
Mar 9, 2026parthea pushed a commit that referenced this pull request
Mar 9, 2026This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters