Skip to content

Commit 84667d1

Browse files
authored
fix: fix mypy for services with extended operations methods (#2536)
1 parent b75b8f4 commit 84667d1

File tree

1 file changed

+1
-1
lines changed
  • gapic/templates/%namespace/%name_%version/%sub/services/%service/transports

1 file changed

+1
-1
lines changed

gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/base.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block content %}
44

55
import abc
6-
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
6+
from typing import {% if service.any_extended_operations_methods %}Any, {% endif %}Awaitable, Callable, Dict, Optional, Sequence, Union
77

88
{% set package_path = api.naming.module_namespace|join('.') + "." + api.naming.versioned_module_name %}
99
from {{package_path}} import gapic_version as package_version

0 commit comments

Comments
 (0)