Skip to content

Commit e3a181a

Browse files
hebaalazzehparthea
andauthored
Update packages/google-api-core/google/api_core/operations_v1/__init__.py
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent af231a0 commit e3a181a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • packages/google-api-core/google/api_core/operations_v1

packages/google-api-core/google/api_core/operations_v1/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@
7272

7373
if _has_async_rest:
7474
try:
75+
# On Python 3.15+, PEP 0810 lazy loading means these imports will succeed
76+
# instantly (returning a lazy proxy). Any actual ImportErrors (e.g., due to
77+
# missing aiohttp/auth dependencies) are deferred until the proxies are accessed.
7578
from google.api_core.operations_v1.transports.rest_asyncio import ( # noqa: E402, F401
7679
AsyncOperationsRestTransport,
7780
)

0 commit comments

Comments
 (0)