Skip to content

Improve test coverage for service.any_extended_operations_methods #2535

@parthea

Description

@parthea

Currently none of the goldens exercise the service.any_extended_operations_methods code path in the templates here:

{% if service.any_extended_operations_methods %}
self._extended_operations_services: Dict[str, Any] = {}
{% endif %}

We should consider adding a subset of google-cloud-compute to the golden files that will exercise this code.

See the following errors in this build log in PR googleapis/google-cloud-python#15458

The testing gap is that mypy is failing downstream in google-cloud-python rather than in this repo.

2026-01-16T20:48:05.1104258Z .nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/compute_v1beta/services/wire_groups/transports/base.py:88: error: Name "Any" is not defined  [name-defined]
2026-01-16T20:48:05.1106046Z .nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/compute_v1beta/services/wire_groups/transports/base.py:88: note: Did you forget to import it from "typing"? (Suggestion: "from typing import Any")
2026-01-16T20:48:05.1108314Z .nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/compute_v1beta/services/vpn_tunnels/transports/base.py:88: error: Name "Any" is not defined  [name-defined]
2026-01-16T20:48:05.1110407Z .nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/compute_v1beta/services/vpn_tunnels/transports/base.py:88: note: Did you forget to import it from "typing"? (Suggestion: "from typing import Any")
2026-01-16T20:48:05.1112399Z .nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/compute_v1beta/services/vpn_gateways/transports/base.py:88: error: Name "Any" is not defined  [name-defined]
2026-01-16T20:48:05.1114501Z .nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/compute_v1beta/services/vpn_gateways/transports/base.py:88: note: Did you forget to import it from "typing"? (Suggestion: "from typing import Any")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions