Skip to content

Commit

Permalink
fix: fix 'Couldn't build proto file' when using Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Oct 15, 2024
1 parent e5e8533 commit 25ab8ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/clam.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
manifest={
"Clam",
"Species",
"Color",
},
)

Expand All @@ -30,6 +31,14 @@ class Species(proto.Enum):
GIGAS = 3


class Color(proto.Enum):
COLOR_UNKNOWN = 0
BLUE = 1
ORANGE = 2
GREEN = 3


class Clam(proto.Message):
species = proto.Field(proto.ENUM, number=1, enum="Species")
mass_kg = proto.Field(proto.DOUBLE, number=2)
color = proto.Field(proto.ENUM, number=3, enum="Color")

0 comments on commit 25ab8ce

Please sign in to comment.