Skip to content

Commit c82168a

Browse files
authored
A minor fix for the type annotation (#353)
1 parent b4b16b5 commit c82168a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/gapic-generator/gapic/schema/wrappers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import re
3333
from itertools import chain
3434
from typing import (cast, Dict, FrozenSet, Iterable, List, Mapping, Optional,
35-
Sequence, Set, Union)
35+
Sequence, Set, Tuple, Union)
3636

3737
from google.api import annotations_pb2 # type: ignore
3838
from google.api import client_pb2
@@ -606,7 +606,7 @@ def flattened_fields(self) -> Mapping[str, Field]:
606606
"""Return the signature defined for this method."""
607607
cross_pkg_request = self.input.ident.package != self.ident.package
608608

609-
def filter_fields(sig):
609+
def filter_fields(sig: str) -> Iterable[Tuple[str, Field]]:
610610
for f in sig.split(','):
611611
if not f:
612612
# Special case for an empty signature

0 commit comments

Comments
 (0)