This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch ht/playgrand
in repository https://gitbox.apache.org/repos/asf/tsfile.git


The following commit(s) were added to refs/heads/ht/playgrand by this push:
     new 706ddc3c fix error
706ddc3c is described below

commit 706ddc3ce1455bf59757e3ffd90580c2665fd4fd
Author: HTHou <[email protected]>
AuthorDate: Fri Jul 12 16:44:50 2024 +0800

    fix error
---
 python/tsfile/tsfile.py | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/python/tsfile/tsfile.py b/python/tsfile/tsfile.py
index 0edb1bd5..2ac66a7e 100644
--- a/python/tsfile/tsfile.py
+++ b/python/tsfile/tsfile.py
@@ -22,7 +22,7 @@ import ctypes
 if platform.system() == "Windows":
     ctypes.CDLL(os.path.join(os.path.dirname(__file__), "libtsfile.dll"), 
winmode=0)
 from .tsfile_pywrapper import tsfile_reader, tsfile_writer
-from typing import overload
+from typing import overload, Union
 from pandas import DataFrame
 
 TIMESTAMP_STR = "Time"
@@ -38,7 +38,7 @@ class EmptyFileError(Exception):
 def read_tsfile(
     file_path: str,
     table_name: str,
-    columns: list[str] | str,
+    columns: Union[list[str], str],
 ) -> DataFrame: ...
 
 
@@ -47,7 +47,7 @@ def read_tsfile(
 def read_tsfile(
     file_path: str,
     table_name: str,
-    columns: list[str] | str,
+    columns: Union[list[str], str],
     filter: str,
     start_time: int,
     end_time: int,
@@ -59,7 +59,7 @@ def read_tsfile(
 def read_tsfile(
     file_path: str,
     table_name: str,
-    columns: list[str] | str,
+    columns: Union[list[str], str],
     chunksize: int,
 ) -> DataFrame: ...
 
@@ -68,7 +68,7 @@ def read_tsfile(
 def read_tsfile(
     file_path: str,
     table_name: str,
-    columns: list[str] | str,
+    columns: Union[list[str], str],
     filter: str,
     start_time: int,
     end_time: int,
@@ -81,7 +81,7 @@ def read_tsfile(
 def read_tsfile(
     file_path: str,
     table_name: str,
-    columns: list[str] | str,
+    columns: Union[list[str], str],
     iterator: bool,
     chunksize: int,
 ) -> tsfile_reader: ...
@@ -91,7 +91,7 @@ def read_tsfile(
 def read_tsfile(
     file_path: str,
     table_name: str,
-    columns: list[str] | str,
+    columns: Union[list[str], str],
     start_time: int,
     end_time: int,
     iterator: bool,
@@ -102,7 +102,7 @@ def read_tsfile(
 def read_tsfile(
     file_path: str,
     table_name: str,
-    columns: list[str] | str,
+    columns: Union[list[str], str],
     start_time: int = None,
     end_time: int = None,
     chunksize: int = None,

Reply via email to