Skip to content
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

Add initial tests for exports and run them in mypy and pyright #1135

Merged
merged 9 commits into from
Nov 16, 2023

Conversation

pakrym-stripe
Copy link
Contributor

No description provided.

…peline, updated formatting and removed type ignores in multiple files, added mypy configuration in pyproject.toml, and updated tests for typing.
… long lines across several files in the Stripe API library.
…__` method of the `ListObject` class in the file `stripe/api_resources/list_object.py` has been simplified from multiple lines to a single line.
exclude = ["build", "**/__pycache__"]
reportMissingTypeArgument = true
reportUnnecessaryCast = true
reportUnnecessaryComparison = true
reportUnnecessaryContains = true
reportUnnecessaryIsInstance = true
reportPrivateImportUsage = true
reportUnnecessaryTypeIgnoreComment = true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need to use #type: ignore in import tests for negative cases.

Copy link
Contributor

@richardm-stripe richardm-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for doing this. This gives me so much more peace of mind.

@pakrym-stripe pakrym-stripe merged commit e22152c into master Nov 16, 2023
15 checks passed
@xavdid-stripe xavdid-stripe deleted the pakrym/Add_export_tests branch May 10, 2024 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants