Skip to content

Commit 603236b

Browse files
committed
feat(api-core): Implement PEP 0810 lazy loading in gapic_v1
1 parent b2ec761 commit 603236b

1 file changed

Lines changed: 9 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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
__lazy_modules__ = {
16+
f"{__name__}.client_info",
17+
f"{__name__}.config",
18+
f"{__name__}.config_async",
19+
f"{__name__}.method",
20+
f"{__name__}.method_async",
21+
f"{__name__}.routing_header",
22+
}
23+
1524
from google.api_core.gapic_v1 import client_info
1625
from google.api_core.gapic_v1 import config
1726
from google.api_core.gapic_v1 import config_async

0 commit comments

Comments
 (0)