Skip to content

Commit c32e7dc

Browse files
author
Luke Sneeringer
authored
[fix] Remove some unused imports. (#177)
This removes five imports from generated code that are consistently unused.
1 parent 4694e54 commit c32e7dc

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

packages/gapic-generator/gapic/templates/$namespace/$name_$version/$sub/services/$service/client.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% block content %}
44
from collections import OrderedDict
5-
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
5+
from typing import Dict, Sequence, Tuple, Type, Union
66
import pkg_resources
77

88
from google.api_core import exceptions # type: ignore

packages/gapic-generator/gapic/templates/$namespace/$name_$version/$sub/services/$service/pagers.py.j2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
{# This lives within the loop in order to ensure that this template
77
is empty if there are no paged methods.
88
-#}
9-
import copy
109
from typing import Any, Callable, Iterable
1110

1211
{% filter sort_lines -%}

packages/gapic-generator/gapic/templates/$namespace/$name_$version/$sub/services/$service/transports/grpc.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends '_base.py.j2' %}
22

33
{% block content %}
4-
from typing import Callable, Dict, Sequence, Tuple
4+
from typing import Callable, Dict
55

66
from google.api_core import grpc_helpers # type: ignore
77
{%- if service.has_lro %}

0 commit comments

Comments
 (0)