Skip to content

Commit caac6c5

Browse files
committed
lint
1 parent c799fc9 commit caac6c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyiceberg/table/update/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from typing import TYPE_CHECKING, Annotated, Any, Dict, Generic, List, Literal, Optional, Tuple, TypeVar, Union, cast
2525

2626
from pydantic import Field, field_validator, model_validator, model_serializer
27-
from pydantic_core.core_schema import SerializerFunctionWrapHandler, SerializationInfo
2827

2928
from pyiceberg.exceptions import CommitFailedException
3029
from pyiceberg.partitioning import PARTITION_FIELD_ID_START, PartitionSpec
@@ -731,6 +730,7 @@ class AssertRefSnapshotId(ValidatableTableRequirement):
731730
@model_serializer(mode="wrap")
732731
def serialize_model(self, handler) -> dict[str, Any]:
733732
partial_result = handler(self)
733+
# Ensure "snapshot-id" is always present, even if value is None
734734
return {**partial_result, "snapshot-id": self.snapshot_id}
735735

736736
def validate(self, base_metadata: Optional[TableMetadata]) -> None:

0 commit comments

Comments
 (0)