Skip to content

NameError in generated Ads service templates #882

@BenRKarl

Description

@BenRKarl

A recent change seems to have changed the import statement for field_mask_pb2 but not the calling code further down in the file. The issue is that the following:

from google.protobuf import field_mask_pb2 as gp_field_mask  # type: ignore

Is now being generated as:

from google.protobuf import field_mask_pb2 # type: ignore

Resulting in the error:

NameError: name 'gp_field_mask' is not defined

It seems to only be isolated to two places in a single file, for example here.

And here's the proto definition for that class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage meI really want to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions