Wrong type annotation for metadata
, instead of Sequence[Tuple[str, str]]
, should be Sequence[Tuple[str, Union[str, bytes]]]
#2250
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
gapic-generator
version: N/A, bug in already generated librarySteps to reproduce
pip install google-cloud-datacatalog-lineage==0.3.9
(as a quick way of getting a generated client)LineageClient
metadata
in API methods isSequence[Tuple[str, str]]
, but in reality it should beSequence[Tuple[str, Union[str, bytes]]]
.Failing Code example
Sending a pair of
str
, when the first one has a suffix of "-bin" causes errors:Stack trace
Working Code example
Sending a pair of
str, bytes
succeeds:So the type annotation should be
Sequence[Tuple[str, Union[str, bytes]]]
, to avoid confusion and time wasted on debbuging.The examples here also show to send
str, bytes
.The text was updated successfully, but these errors were encountered: