refactor(protobufutil): plain import of codec, exclude clashing symbol

Switch the brittle hand-maintained `from codec import <symbol-list>` to a
plain `import`, so adding a codec helper no longer means editing the list.
Use `except ProtobufError` because codec re-exports its own ProtobufError,
which would otherwise clash with our app-layer ./types/protobuf_error one.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Ivan FB 2026-06-12 14:49:18 +02:00
parent a39a1dea1e
commit d59b6074bc
No known key found for this signature in database
GPG Key ID: DF0C67A04C543270

View File

@ -21,9 +21,7 @@
import std/tables
import results
import faststreams/inputs
from protobuf_serialization/codec import
FieldHeader, WireKind, init, number, kind, toBytes, readHeader, readValue,
skipValue, puint64, pbytes, fixed64, fixed32
import protobuf_serialization/codec except ProtobufError
import ./types/protobuf_error
export results, protobuf_error