-
-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Labels
ConstructorsSeries/DataFrame/Index/pd.array ConstructorsSeries/DataFrame/Index/pd.array ConstructorsIndexRelated to the Index class or subclassesRelated to the Index class or subclasses
Description
The following constructions are invalid but are not reported with the current pandas-stubs:
import pandas as pd
import numpy as np
# numpy float16
pd.Index([1.0], dtype=np.half)
pd.Index([1.0], dtype="half")
pd.Index([1.0], dtype="float16")
pd.Index([1.0], dtype="e")
pd.Index([1.0], dtype="f2")We can start to fix them after #1493 has been merged.
Metadata
Metadata
Assignees
Labels
ConstructorsSeries/DataFrame/Index/pd.array ConstructorsSeries/DataFrame/Index/pd.array ConstructorsIndexRelated to the Index class or subclassesRelated to the Index class or subclasses