Closed
Description
import pandas as pd
from collections.abc import Sequence
index: Sequence[int] = [3, 2, 7]
columns = ["a", "b", "c"]
df = pd.DataFrame(index=index, columns=columns) # ✘ error: [call-overload]
print(df)
If the annotation Sequence[int]
is removed, the file parses.
Please complete the following information:
- Ubuntu 22.04.1
- Python 3.10.6
- mypy 0.982
- pandas 1.5.0
- pandas-stubs 1.5.0.221012
Metadata
Metadata
Assignees
Labels
No labels