1414# KIND, either express or implied. See the License for the
1515# specific language governing permissions and limitations
1616# under the License.
17+ from __future__ import annotations
18+
1719from typing import (
1820 TYPE_CHECKING ,
19- Union ,
2021)
2122
2223from pyiceberg .catalog import Catalog , PropertiesUpdateSummary
@@ -44,7 +45,7 @@ class NoopCatalog(Catalog):
4445 def create_table (
4546 self ,
4647 identifier : str | Identifier ,
47- schema : Union [ Schema , " pa.Schema" ] ,
48+ schema : Schema | pa .Schema ,
4849 location : str | None = None ,
4950 partition_spec : PartitionSpec = UNPARTITIONED_PARTITION_SPEC ,
5051 sort_order : SortOrder = UNSORTED_SORT_ORDER ,
@@ -55,7 +56,7 @@ def create_table(
5556 def create_table_transaction (
5657 self ,
5758 identifier : str | Identifier ,
58- schema : Union [ Schema , " pa.Schema" ] ,
59+ schema : Schema | pa .Schema ,
5960 location : str | None = None ,
6061 partition_spec : PartitionSpec = UNPARTITIONED_PARTITION_SPEC ,
6162 sort_order : SortOrder = UNSORTED_SORT_ORDER ,
0 commit comments