Skip to content

Commit

Permalink
typealias for table version
Browse files Browse the repository at this point in the history
  • Loading branch information
MehulBatra committed Apr 1, 2024
1 parent 64ec9ff commit bf24eb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyiceberg/typedef.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
from uuid import UUID

from pydantic import BaseModel, ConfigDict, RootModel
from typing_extensions import TypeAlias

if TYPE_CHECKING:
from pyiceberg.types import StructType
Expand Down Expand Up @@ -202,4 +203,4 @@ def record_fields(self) -> List[str]:
return [self.__getattribute__(v) if hasattr(self, v) else None for v in self._position_to_field_name]


TableVersion = Literal[1, 2]
TableVersion: TypeAlias = Literal[1, 2]

0 comments on commit bf24eb8

Please sign in to comment.