Skip to content

Commit 814ec68

Browse files
committed
Message should be a subclass of IProtoMessage
1 parent 3d8c0cb commit 814ec68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/betterproto/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
import typing
2626

27+
from grpclib._typing import IProtoMessage # noqa
28+
2729
from ._types import T
2830
from .casing import camel_case, safe_snake_case, snake_case
2931
from .grpc.grpclib_client import ServiceStub
@@ -497,7 +499,7 @@ def _get_cls_by_field(cls, fields):
497499
return field_cls
498500

499501

500-
class Message(ABC):
502+
class Message(IProtoMessage):
501503
"""
502504
A protobuf message base class. Generated code will inherit from this and
503505
register the message fields which get used by the serializers and parsers

0 commit comments

Comments
 (0)