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.
A recent change seems to have changed the import statement for
field_mask_pb2but not the calling code further down in the file. The issue is that the following:Is now being generated as:
Resulting in the error:
NameError: name 'gp_field_mask' is not definedIt seems to only be isolated to two places in a single file, for example here.
And here's the proto definition for that class.