-
-
Notifications
You must be signed in to change notification settings - Fork 150
Closed
Labels
API - ConsistencyInternal Consistency of API/BehaviorInternal Consistency of API/BehaviorAPI DesignSeriesSeries data structureSeries data structure
Description
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
- Provide a minimal runnable
pandas
example that is not properly checked by the stubs. - Indicate which type checker you are using (
mypy
orpyright
). - Show the error message received from that type checker while checking your example.
import pandas as pd
import numpy as np
s = pd.Series([1,2,3])
s.searchsorted({'a': np.array([1])})
s.quantile(q={'a': np.array([1])})
This is fine statically but raises at runtime
TypeError: '>=' not supported between instances of 'dict' and 'dict'
TypeError: '>=' not supported between instances of 'dict' and 'int'
I don't think _ListLike
is the correct annotation here
Please complete the following information:
- OS: [e.g. Windows, Linux, MacOS]
- OS Version [e.g. 22]
- python version
- version of type checker
- version of installed
pandas-stubs
9105941
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
API - ConsistencyInternal Consistency of API/BehaviorInternal Consistency of API/BehaviorAPI DesignSeriesSeries data structureSeries data structure