Skip to content

mypy test fails with gapic-generator-python 0.65.2 #1288

@parthea

Description

@parthea

The following code is failing the mypy test in googleapis/python-datastore#306

        metadata = tuple(metadata) + (
            gapic_v1.routing_header.to_grpc_metadata((("project_id", ""),)),
        )

The error is

nox > mypy google/ tests/
tests/unit/gapic/datastore_admin_v1/test_datastore_admin.py:1817: error: Incompatible types in assignment (expression has type "Tuple[Any, ...]", variable has type "Tuple[]")

See build log here.

@atulep Please could you take a look?

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions