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
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.
Hi @jtetrault, thanks for the report! This should be fixed with types-stripe v3.5.2. I believe VSCode's built-in Python language features also uses the typeshed stubs, but I'm not sure how those are updated.
Closing this out, but please feel free to re-open if this isn't resolved for you!
Describe the bug
When using
mypy
to type check code, an error is thrown when trying to access thesearch
method 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:
mypy
will output the following error:Expected behavior
mypy
should 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
The text was updated successfully, but these errors were encountered: