Describe the bug
When using mypy to type check code, an error is thrown when trying to access the search method of any resource that subclasses SearchableAPIResource (for example, stripe.Price).
Furthermore, VSCode's built-in Python language features also fail to recognize search.


To Reproduce
In an Ubuntu shell, run the following commands:
virtualenv venv
. venv/bin/activate
pip install stripe types-stripe mypy
echo "import stripe" > test.py
echo >> test.py
echo "stripe.Price.search" >> test.py
mypy test.py
mypy will output the following error:
test.py:3: error: "Type[Price]" has no attribute "search"
Expected behavior
mypy should not throw an error here.
Code snippets
import stripe
stripe.Price.search
OS
Ubuntu 20.04.4 LTS on WSL2
Language version
3.9.12
Library version
stripe==4.1.0
API version
2022-08-01
Additional context
No response
Describe the bug
When using
mypyto type check code, an error is thrown when trying to access thesearchmethod of any resource that subclassesSearchableAPIResource(for example,stripe.Price).Furthermore, VSCode's built-in Python language features also fail to recognize
search.To Reproduce
In an Ubuntu shell, run the following commands:
mypywill output the following error:Expected behavior
mypyshould not throw an error here.Code snippets
OS
Ubuntu 20.04.4 LTS on WSL2
Language version
3.9.12
Library version
stripe==4.1.0
API version
2022-08-01
Additional context
No response