Change default values of WrappedFieldData string fields to empty strings.
PiperOrigin-RevId: 828547058 Change-Id: I0dc0f993cd93a8feab3f1a53b7ee6c47266093e0
This commit is contained in:
committed by
Copybara-Service
parent
ff0ae09bc4
commit
c3858f267a
@@ -35,22 +35,22 @@ class WrappedFieldData:
|
|||||||
"""Data class for struct field definition and binding."""
|
"""Data class for struct field definition and binding."""
|
||||||
|
|
||||||
# Line for struct field binding
|
# Line for struct field binding
|
||||||
binding: str
|
binding: str = ""
|
||||||
|
|
||||||
# Line for struct field definition
|
# Line for struct field definition
|
||||||
definition: str | None = None
|
definition: str = ""
|
||||||
|
|
||||||
# Initialization code for fields that require it
|
# Initialization code for fields that require it
|
||||||
initialization: str | None = None
|
initialization: str = ""
|
||||||
|
|
||||||
# Statement to reset the inner pointer when copying the field
|
# Statement to reset the inner pointer when copying the field
|
||||||
ptr_copy_reset: str | None = None
|
ptr_copy_reset: str = ""
|
||||||
|
|
||||||
# Whether the field is a primitive or fixed size
|
# Whether the field is a primitive or fixed size
|
||||||
is_primitive_or_fixed_size: bool = False
|
is_primitive_or_fixed_size: bool = False
|
||||||
|
|
||||||
# Underlying type of the field
|
# Underlying type of the field
|
||||||
typename: str | None = None
|
typename: str = ""
|
||||||
|
|
||||||
|
|
||||||
@dataclasses.dataclass
|
@dataclasses.dataclass
|
||||||
|
|||||||
Reference in New Issue
Block a user