Betterproto doesn't properly handle inheriting existing messages. This method takes the superclass proto metadata and assigns that to this one.
Betterproto doesn’t properly handle inheriting existing messages. This method takes the superclass proto metadata and assigns that to this one.
Signature
Section titled “Signature”def proto_extension(cls: Type[_MessageType]) -> Type[_MessageType]Parameters
Section titled “Parameters”cls(Type[_MessageType]) — Class to wrap
Returns
Section titled “Returns”Type[_MessageType] — The class, wrapped.
Import
Section titled “Import”from TikTokLive.proto import proto_extension