File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121import uuid
2222from datetime import datetime , timedelta
2323from pathlib import PosixPath
24- from typing import Any
24+ from typing import Any , cast
2525from urllib .parse import urlparse
2626
2727import pyarrow as pa
5252from pyiceberg .schema import Schema
5353from pyiceberg .table import Table
5454from pyiceberg .table .snapshots import Operation
55+ from pyiceberg .typedef import TableVersion
5556from pyiceberg .types import (
5657 BinaryType ,
5758 BooleanType ,
@@ -984,7 +985,7 @@ def test_upgrade_table_version(catalog: Catalog) -> None:
984985
985986 with pytest .raises (ValueError ) as e :
986987 with table_test_table_version .transaction () as transaction :
987- transaction .upgrade_table_version (format_version = 4 ) # type: ignore[arg-type]
988+ transaction .upgrade_table_version (format_version = cast ( TableVersion , 4 ))
988989 assert "Unsupported table format version: 4" in str (e .value )
989990
990991
You can’t perform that action at this time.
0 commit comments