man-group / ArcticDB

ArcticDB is a high performance, serverless DataFrame database built for the Python Data Science ecosystem.
http://arcticdb.io
Other
1.52k stars 93 forks source link

Library#get_description return type does not match type hints #1865

Closed poodlewars closed 1 month ago

poodlewars commented 1 month ago

Describe the bug

No response

Steps/Code to Reproduce

    symbol = "sorted_test"
    df = pd.DataFrame({"column": [1, 2, 3, 4]}, index=pd.date_range(start="1/1/2018", end="1/4/2018"))
    df.index.name = "bananas"
    lib.write(symbol, df)
    desc = lib.get_description(symbol)

Expected Results

desc.index is a NameWithDType, so, according to its type hints, dtype and name should be str. Instead they are List[str] and List[TypeDescriptor].

OS, Python Version and ArcticDB Version

-

Backend storage used

No response

Additional Context

No response