You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @Ranfir !
Thanks for the report, this is a known issue: pd.Series (when you call it in the last example) is not treated as a type that you can subscribe to but as the Series object that gets created by pandas.
It is not treated as a type the same way list[list[int]]() would be.
The other issue here is that the stubs have more specific types than the runtime. E.g., if you have s=pd.Series([1,2,3]), the stubs type is Series[int], but without the stubs, the type is just pd.Series. The Generic aspect of Series exists in the stubs, but not in the source, so it's not available at runtime.
Going to close - this is not something we will fix.
Uh oh!
There was an error while loading. Please reload this page.
This works:
As does this:
But not this:
For what it's worth,
pyarrow-stubs
suffers from the same issue.pandas-stubs
2.2.3.250308The text was updated successfully, but these errors were encountered: