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

Run Pyright & begin adding type annotations #1020

Merged
merged 25 commits into from
Aug 23, 2023
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
cdfa080
Set up StripeObject to support types!
anniel-stripe Jul 12, 2023
0926218
introduce make pyright
richardm-stripe Jul 27, 2023
fa00a07
Fix test_api_requestor.py
richardm-stripe Aug 21, 2023
6c2ee1c
Fix test helper types
richardm-stripe Jul 31, 2023
582e28d
Pin Pyright for now
anniel-stripe Aug 18, 2023
81c8141
Don't put stripe/py.typed in package data
richardm-stripe Aug 21, 2023
1fdd514
Make pagination typecheck in python3.6
richardm-stripe Aug 22, 2023
7d5cca5
Revert "Make pagination typecheck in python3.6"
richardm-stripe Aug 22, 2023
9eee84b
Suppress 3.6 type error
richardm-stripe Aug 22, 2023
8fa7522
typing_extensions everywhere
richardm-stripe Aug 22, 2023
c520c96
Use Dict not "dict"
richardm-stripe Aug 22, 2023
5e8a9fd
Centralize types
richardm-stripe Aug 22, 2023
5f7ab5f
Don't alias overload
richardm-stripe Aug 22, 2023
751f69d
Revert "Don't alias overload"
richardm-stripe Aug 22, 2023
480f937
Revert "Centralize types"
richardm-stripe Aug 22, 2023
6f8f917
Do it with a linter rule
richardm-stripe Aug 23, 2023
6a37522
Comment
richardm-stripe Aug 23, 2023
f1b8ef8
Code review: list/search results
richardm-stripe Aug 23, 2023
ee66bb0
_proxy -> _parsed_proxy
richardm-stripe Aug 23, 2023
bf5f231
fixup! Code review: list/search results
richardm-stripe Aug 23, 2023
b531c68
Fix test_helpers
richardm-stripe Aug 23, 2023
ab5f1e9
Use Dict not "dict[...]"
richardm-stripe Aug 23, 2023
d6cab8a
fixup! Code review: list/search results
richardm-stripe Aug 23, 2023
b555d0a
fixup! _proxy -> _parsed_proxy
richardm-stripe Aug 23, 2023
c6a5a1f
Put a version floor on typing_extensions
richardm-stripe Aug 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Put a version floor on typing_extensions
  • Loading branch information
richardm-stripe committed Aug 23, 2023
commit c6a5a1f1c17181963f8d81ca2feae15fe6d46a9b
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -31,8 +31,8 @@
package_data={"stripe": ["data/ca-certificates.crt"]},
zip_safe=False,
install_requires=[
'typing_extensions <= 4.2.0; python_version < "3.7"',
'typing_extensions; python_version >= "3.7"',
'typing_extensions <= 4.2.0, > 3.7.2; python_version < "3.7"',
'typing_extensions > 3.7.2; python_version >= "3.7"',
'requests >= 2.20; python_version >= "3.0"',
],
python_requires=">=3.6",