Skip to content

Commit

Permalink
Add Literal import
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrluis committed Jan 15, 2025
1 parent df6f40f commit c605753
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pyiceberg/table/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,15 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from typing import (
Dict,
List,
Optional,
)
from typing import Dict, List, Literal, Optional

from pydantic import Field

from pyiceberg.typedef import IcebergBaseModel


class BlobMetadata(IcebergBaseModel):
type: Literal['apache-datasketches-theta-v1', 'deletion-vector-v1']
type: Literal["apache-datasketches-theta-v1", "deletion-vector-v1"]
snapshot_id: int = Field(alias="snapshot-id")
sequence_number: int = Field(alias="sequence-number")
fields: List[int]
Expand Down

0 comments on commit c605753

Please sign in to comment.