Skip to content

Commit 9be393e

Browse files
committed
3.9 cant use pipe syntax for type hints
1 parent 209329b commit 9be393e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyiceberg/table/statistics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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 Dict, List, Literal, Optional
17+
from typing import Dict, List, Literal, Optional, Union
1818

1919
from pydantic import Field
2020

@@ -48,7 +48,7 @@ class PartitionStatisticsFile(StatisticsCommonFields):
4848

4949

5050
def filter_statistics_by_snapshot_id(
51-
statistics: List[StatisticsFile | PartitionStatisticsFile],
51+
statistics: List[Union[StatisticsFile, PartitionStatisticsFile]],
5252
reject_snapshot_id: int,
53-
) -> List[StatisticsFile | PartitionStatisticsFile]:
53+
) -> List[Union[StatisticsFile, PartitionStatisticsFile]]:
5454
return [stat for stat in statistics if stat.snapshot_id != reject_snapshot_id]

0 commit comments

Comments
 (0)