-
-
Notifications
You must be signed in to change notification settings - Fork 157
Closed
Labels
ExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.good first issue
Description
Describe the bug
.tolist() is not recognized as a method for a pandas array. You can compare with generating the stubs using stubgen -p pandas which does provide it in core/arrays/base.pyi:
class ExtensionArray:
....
def tolist(self) -> list: ...
Should pandas-stub support this? Could be something wrong with my typechecker, but I don't see tolist in the corresponding pandas-stubs' pyi.
To Reproduce
import pandas as pd
return pd.array([1,2,3]).tolist()
Please complete the following information:
- python version: 3.10.8
- version of type checker: fork of pyright. Should be compatible with pyright 1.1.279
- version of installed
pandas-stubs: 1.5.3.230304
Metadata
Metadata
Assignees
Labels
ExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.good first issue
