Skip to content

Commit

Permalink
Update annotation with V3 (#1587)
Browse files Browse the repository at this point in the history
Missed this in #1554
  • Loading branch information
Fokko authored Jan 30, 2025
1 parent 361a407 commit 37916c4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pyiceberg/table/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,3 @@ def _construct_without_validation(table_metadata: TableMetadata) -> TableMetadat
return TableMetadataV3.model_construct(**dict(table_metadata))
else:
raise ValidationError(f"Unknown format version: {table_metadata.format_version}")


TableMetadata = Annotated[Union[TableMetadataV1, TableMetadataV2], Field(discriminator="format_version")] # type: ignore

0 comments on commit 37916c4

Please sign in to comment.