diff --git a/pyiceberg/avro/__init__.py b/pyiceberg/avro/__init__.py index 75440db77c..f7636590a6 100644 --- a/pyiceberg/avro/__init__.py +++ b/pyiceberg/avro/__init__.py @@ -21,3 +21,8 @@ STRUCT_DOUBLE = struct.Struct(" None: pass diff --git a/pyiceberg/avro/decoder_fast.pyx b/pyiceberg/avro/decoder_fast.pyx index 52caec3308..312620246c 100644 --- a/pyiceberg/avro/decoder_fast.pyx +++ b/pyiceberg/avro/decoder_fast.pyx @@ -23,6 +23,8 @@ from libc.stdint cimport uint64_t, int64_t import array +__all__ = [] + cdef extern from "decoder_basic.c": void decode_zigzag_ints(const unsigned char **buffer, const uint64_t count, uint64_t *result); diff --git a/pyiceberg/avro/encoder.py b/pyiceberg/avro/encoder.py index 43a711fa6b..ab7a6fb743 100644 --- a/pyiceberg/avro/encoder.py +++ b/pyiceberg/avro/encoder.py @@ -21,6 +21,8 @@ from pyiceberg.io import OutputStream from pyiceberg.typedef import UTF8 +__all__: list[str] = [] + class BinaryEncoder: """Encodes Python physical types into bytes.""" diff --git a/pyiceberg/avro/file.py b/pyiceberg/avro/file.py index f1be9c3928..314239ec2a 100644 --- a/pyiceberg/avro/file.py +++ b/pyiceberg/avro/file.py @@ -50,6 +50,8 @@ ) from pyiceberg.utils.schema_conversion import AvroSchemaConversion +__all__: list[str] = [] + VERSION = 1 MAGIC = bytes(b"Obj" + bytearray([VERSION])) MAGIC_SIZE = len(MAGIC) diff --git a/pyiceberg/avro/reader.py b/pyiceberg/avro/reader.py index d33c054beb..3355857c98 100644 --- a/pyiceberg/avro/reader.py +++ b/pyiceberg/avro/reader.py @@ -44,6 +44,8 @@ from pyiceberg.utils.lazydict import LazyDict from pyiceberg.utils.singleton import Singleton +__all__: list[str] = [] + def _skip_map_array(decoder: BinaryDecoder, skip_entry: Callable[[], None]) -> None: """Skips over an array or map. diff --git a/pyiceberg/avro/resolver.py b/pyiceberg/avro/resolver.py index 900f47dab6..555d0a6501 100644 --- a/pyiceberg/avro/resolver.py +++ b/pyiceberg/avro/resolver.py @@ -107,6 +107,8 @@ UUIDType, ) +__all__: list[str] = [] + STRUCT_ROOT = -1 diff --git a/pyiceberg/avro/writer.py b/pyiceberg/avro/writer.py index f78d1a486e..b3e377f1f2 100644 --- a/pyiceberg/avro/writer.py +++ b/pyiceberg/avro/writer.py @@ -36,6 +36,8 @@ from pyiceberg.utils.decimal import decimal_required_bytes, decimal_to_bytes from pyiceberg.utils.singleton import Singleton +__all__: list[str] = [] + @dataclass(frozen=True) class Writer(Singleton):