-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(web_api): add type stubs for stripe #816
Conversation
Latest version of stripe type stubs are more filled out.
@@ -41,6 +41,9 @@ types-redis = "^0.1.10" | |||
types-dj-database-url = "^0.5.0" | |||
responses = "^0.21.0" | |||
pytest-django = "^4.5.2" | |||
types-stripe = "^2.59.10" | |||
pydantic = "^1.9.1" | |||
types-requests = "^2.27.30" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mypy no longer ships the typeshed so we need to specify what we want
@@ -15,7 +15,8 @@ | |||
patch_django() | |||
|
|||
|
|||
sentry_sdk.init(integrations=[DjangoIntegration()], send_default_pii=True) | |||
# Waiting on https://github.com/getsentry/sentry-python/issues/1415 | |||
sentry_sdk.init(integrations=[DjangoIntegration()], send_default_pii=True) # type: ignore[abstract] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
waiting on getsentry/sentry-python#1415
@@ -41,6 +41,9 @@ types-redis = "^0.1.10" | |||
types-dj-database-url = "^0.5.0" | |||
responses = "^0.21.0" | |||
pytest-django = "^4.5.2" | |||
types-stripe = "^2.59.10" | |||
pydantic = "^1.9.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updating due to mypy issue: pydantic/pydantic#3528
@@ -24,7 +24,7 @@ pywatchman = "^1.4" | |||
[tool.poetry.dev-dependencies] | |||
pylint = "^2.4" | |||
pytest = "6.0.1" | |||
mypy = "^0.812" | |||
mypy = "^0.960" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated so mypy understandings type[T]
Latest version of stripe type stubs are more filled out and provide some useful type checking:
python/typeshed#7978