From 25ab8ce6ae0d9f2f0955708944bfba99c997d5a4 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Tue, 15 Oct 2024 14:04:46 +0000 Subject: [PATCH] fix: fix 'Couldn't build proto file' when using Python 3.13 --- tests/clam.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/clam.py b/tests/clam.py index 4946ebe1..2f9dde13 100644 --- a/tests/clam.py +++ b/tests/clam.py @@ -19,6 +19,7 @@ manifest={ "Clam", "Species", + "Color", }, ) @@ -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")