Skip to content

Commit

Permalink
fix 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
HTHou committed Sep 9, 2024
1 parent 5c2cb75 commit 6ad9069
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions iotdb-client/client-py/iotdb/utils/NumpyTablet.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import struct

from numpy import ndarray
from typing import List
from iotdb.utils.IoTDBConstants import TSDataType
from iotdb.utils.BitMap import BitMap
from iotdb.utils.Tablet import ColumnType
Expand All @@ -28,12 +29,12 @@ class NumpyTablet(object):
def __init__(
self,
insert_target_name: str,
column_names: list[str],
data_types: list[TSDataType],
values: list[ndarray],
column_names: List[str],
data_types: List[TSDataType],
values: List[ndarray],
timestamps: ndarray,
bitmaps: list[BitMap] = None,
column_types=None,
bitmaps: List[BitMap] = None,
column_types: List[ColumnType] = None,
):
"""
creating a numpy tablet for insertion
Expand Down
11 changes: 6 additions & 5 deletions iotdb-client/client-py/iotdb/utils/Tablet.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import struct
from enum import unique, IntEnum
from typing import List
from iotdb.utils.BitMap import BitMap
from iotdb.utils.IoTDBConstants import TSDataType

Expand All @@ -39,11 +40,11 @@ class Tablet(object):
def __init__(
self,
insert_target_name: str,
column_names: list[str],
data_types: list[TSDataType],
values: list[list],
timestamps: list[int],
column_types=None,
column_names: List[str],
data_types: List[TSDataType],
values: List[List],
timestamps: List[int],
column_types: List[ColumnType] = None,
):
"""
creating a tablet for insertion
Expand Down

0 comments on commit 6ad9069

Please sign in to comment.