Skip to content

Commit d9e5b17

Browse files
committed
cd meta && uv run ruff format
1 parent 892c99b commit d9e5b17

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

meta/src/meta/proto_ast.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class ProtoField:
6060
map_key_type: str = ""
6161
map_value_type: str = ""
6262

63+
6364
@dataclass
6465
class ProtoOneof:
6566
"""Oneof group in a protobuf message.

meta/src/meta/type_env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"bytes": "Bytes",
2828
}
2929

30+
3031
def _scalar_to_target(type_name: str) -> TargetType:
3132
"""Convert a scalar proto type name to a TargetType."""
3233
if type_name in _PRIMITIVE_TO_BASE_TYPE:

meta/src/meta/yacc_parser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,9 @@ def _make_field_type_lookup(
764764
value_type = _proto_type_to_target_type(
765765
field.map_value_type, False, name_to_module=name_to_module
766766
)
767-
field_types[(module, msg_name, field.name)] = DictType(key_type, value_type)
767+
field_types[(module, msg_name, field.name)] = DictType(
768+
key_type, value_type
769+
)
768770
else:
769771
field_type = _proto_type_to_target_type(
770772
field.type, field.is_repeated, field.is_optional, name_to_module

0 commit comments

Comments
 (0)