Skip to content

Commit 324786d

Browse files
committed
chore: add PEP 0810 comment above __lazy_modules__
1 parent 2be3f3f commit 324786d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414

1515
from typing import Set
1616

17+
# PEP 0810: Explicit Lazy Imports
18+
# Python 3.15+ natively intercepts and defers these imports.
19+
# Developers can disable this behavior and force eager imports.
20+
# For more information, see:
21+
# https://docs.python.org/3.15/library/sys.html#sys.set_lazy_imports_filter
22+
# Older Python versions safely ignore this variable.
1723
__lazy_modules__: Set[str] = {
1824
"google.api_core.gapic_v1.client_info",
1925
"google.api_core.gapic_v1.config",

0 commit comments

Comments
 (0)