Skip to content

Commit af231a0

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 c3790bf commit af231a0

1 file changed

Lines changed: 5 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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,16 @@
3030
# For more information, see:
3131
# https://docs.python.org/3.15/library/sys.html#sys.set_lazy_imports_filter
3232
# Older Python versions safely ignore this variable.
33+
# NOTE: We statically define all modules here (including async ones) to ensure
34+
# static analysis tools (mypy, pyright, Ruff) can easily parse them. If async
35+
# support is not present, the imports are ignored, making their presence safe.
3336
__lazy_modules__: Set[str] = {
3437
"google.api_core.operations_v1.abstract_operations_client",
3538
"google.api_core.operations_v1.operations_async_client",
3639
"google.api_core.operations_v1.operations_client",
3740
"google.api_core.operations_v1.transports.rest",
41+
"google.api_core.operations_v1.transports.rest_asyncio",
42+
"google.api_core.operations_v1.operations_rest_client_async",
3843
}
3944

4045
__all__ = [

0 commit comments

Comments
 (0)