Skip to content

Commit c605753

Browse files
committed
Add Literal import
1 parent df6f40f commit c605753

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pyiceberg/table/statistics.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,15 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
from typing import (
18-
Dict,
19-
List,
20-
Optional,
21-
)
17+
from typing import Dict, List, Literal, Optional
2218

2319
from pydantic import Field
2420

2521
from pyiceberg.typedef import IcebergBaseModel
2622

2723

2824
class BlobMetadata(IcebergBaseModel):
29-
type: Literal['apache-datasketches-theta-v1', 'deletion-vector-v1']
25+
type: Literal["apache-datasketches-theta-v1", "deletion-vector-v1"]
3026
snapshot_id: int = Field(alias="snapshot-id")
3127
sequence_number: int = Field(alias="sequence-number")
3228
fields: List[int]

0 commit comments

Comments
 (0)