-
-
Notifications
You must be signed in to change notification settings - Fork 155
Closed
Description
Describe the bug
Concatenating Series of the same dtype leads to Series[Any].
To Reproduce
- Provide a minimal runnable
pandasexample that is not properly checked by the stubs.from typing import reveal_type import pandas as pd reveal_type(pd.concat([pd.Series([1, 2]), pd.Series([3, 4])]).dtype)
- Indicate which type checker you are using (
mypyorpyright).
pyright - Show the error message received from that type checker while checking your example.
concat.py:5:13 - information: Type of "pd.concat([pd.Series([1, 2]), pd.Series([3, 4])])" is "Series[Any]"
Please complete the following information:
- OS: Windows
- OS Version: 11
- python version: 3.13.4
- version of type checker: 1.1.403
- version of installed
pandas-stubs:2.3.0.250703
Additional context
None
Metadata
Metadata
Assignees
Labels
No labels