Skip to content

Commit 3b6c67d

Browse files
committed
lin fixes
1 parent f1f0a73 commit 3b6c67d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pyiceberg/catalog/hive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def create_table(
439439
def create_view(
440440
self,
441441
identifier: str | Identifier,
442-
schema: Schema | pa.Schema,
442+
schema: Union[Schema, "pa.Schema"],
443443
view_version: ViewVersion,
444444
location: str | None = None,
445445
properties: Properties = EMPTY_DICT,

pyiceberg/catalog/noop.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
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+
1719
from typing import (
1820
TYPE_CHECKING,
19-
Union,
2021
)
2122

2223
from 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

Comments
 (0)