From 4815bc32a0ec54965962d03303c93b3498adddf4 Mon Sep 17 00:00:00 2001 From: Zhipeng Xue <543984341@qq.com> Date: Mon, 15 Jul 2024 22:57:53 +0800 Subject: [PATCH] FIX-#0000: Fix type hint (#7343) --- modin/pandas/base.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/modin/pandas/base.py b/modin/pandas/base.py index f7eebcd30f2..b930f1bc7c0 100644 --- a/modin/pandas/base.py +++ b/modin/pandas/base.py @@ -20,7 +20,16 @@ import re import warnings from functools import cached_property -from typing import TYPE_CHECKING, Any, Callable, Hashable, Literal, Optional, Sequence +from typing import ( + TYPE_CHECKING, + Any, + Callable, + Hashable, + Literal, + Optional, + Sequence, + Union, +) import numpy as np import pandas @@ -2147,7 +2156,7 @@ def min( def _stat_operation( self, op_name: str, - axis: int | str, + axis: Optional[Union[int, str]], skipna: bool, numeric_only: Optional[bool] = False, **kwargs,