From d6365a1619716447cb208ebaf219e22e9ff11de1 Mon Sep 17 00:00:00 2001 From: Luke Sneeringer Date: Mon, 12 Aug 2019 10:00:37 -0700 Subject: [PATCH] [fix] Remove some unused imports. This removes five imports from generated code that are consistently unused. --- .../$name_$version/$sub/services/$service/client.py.j2 | 2 +- .../$name_$version/$sub/services/$service/pagers.py.j2 | 1 - .../$name_$version/$sub/services/$service/transports/grpc.py.j2 | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gapic/templates/$namespace/$name_$version/$sub/services/$service/client.py.j2 b/gapic/templates/$namespace/$name_$version/$sub/services/$service/client.py.j2 index 47df25b55d..c22e8c4113 100644 --- a/gapic/templates/$namespace/$name_$version/$sub/services/$service/client.py.j2 +++ b/gapic/templates/$namespace/$name_$version/$sub/services/$service/client.py.j2 @@ -2,7 +2,7 @@ {% block content %} from collections import OrderedDict -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union +from typing import Dict, Sequence, Tuple, Type, Union import pkg_resources from google.api_core import exceptions # type: ignore diff --git a/gapic/templates/$namespace/$name_$version/$sub/services/$service/pagers.py.j2 b/gapic/templates/$namespace/$name_$version/$sub/services/$service/pagers.py.j2 index aac5949228..4efcdc0b46 100644 --- a/gapic/templates/$namespace/$name_$version/$sub/services/$service/pagers.py.j2 +++ b/gapic/templates/$namespace/$name_$version/$sub/services/$service/pagers.py.j2 @@ -6,7 +6,6 @@ {# This lives within the loop in order to ensure that this template is empty if there are no paged methods. -#} -import copy from typing import Any, Callable, Iterable {% filter sort_lines -%} diff --git a/gapic/templates/$namespace/$name_$version/$sub/services/$service/transports/grpc.py.j2 b/gapic/templates/$namespace/$name_$version/$sub/services/$service/transports/grpc.py.j2 index 429c3de58d..317664c58c 100644 --- a/gapic/templates/$namespace/$name_$version/$sub/services/$service/transports/grpc.py.j2 +++ b/gapic/templates/$namespace/$name_$version/$sub/services/$service/transports/grpc.py.j2 @@ -1,7 +1,7 @@ {% extends '_base.py.j2' %} {% block content %} -from typing import Callable, Dict, Sequence, Tuple +from typing import Callable, Dict from google.api_core import grpc_helpers # type: ignore {%- if service.has_lro %}