Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit e127604

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)