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
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,9 +32,9 @@ python -m pip install .
32
32
33
33
### Requirements
34
34
35
-
Per our [Language Version Support Policy](https://docs.stripe.com/sdks/versioning?lang=python#stripe-sdk-language-version-support-policy), we currently support **Python 3.7+**.
35
+
Per our [Language Version Support Policy](https://docs.stripe.com/sdks/versioning?lang=python#stripe-sdk-language-version-support-policy), we currently support **Python 3.9+**.
36
36
37
-
Support for Python 3.7 and 3.8 is deprecated and will be removed in an upcoming major version. Read more and see the full schedule in the docs: https://docs.stripe.com/sdks/versioning?lang=python#stripe-sdk-language-version-support-policy
37
+
Read more and see the full schedule in the docs: https://docs.stripe.com/sdks/versioning?lang=python#stripe-sdk-language-version-support-policy
Copy file name to clipboardExpand all lines: flake8_stripe/flake8_stripe.py
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,12 @@ class TypingImportsChecker:
10
10
version="0.1.0"
11
11
12
12
# Rules:
13
-
# * typing_extensions v4.1.1 is the latest that supports Python 3.6
14
-
# so don't depend on anything from a more recent version than that.
15
-
#
16
-
# If we need something newer, maybe we can provide it for users on
17
-
# newer versions with a conditional import, but we'll cross that
18
-
# bridge when we come to it.
19
-
20
13
# If a symbol exists in both `typing` and `typing_extensions`, which
21
14
# should you use? Prefer `typing_extensions` if the symbol available there.
22
15
# in 4.1.1. In typing_extensions 4.7.0, `typing_extensions` started re-exporting
23
16
# EVERYTHING from `typing` but this is not the case in v4.1.1.
17
+
18
+
# now that we're into modern typing_extensions versions, we should probably prefer that over built-in typing _unless_ all of our `typing `needs are present in all supported Python versions. In that case, we could drop `typing_extensions`. See: https://go/j/DEVSDK-3046
@@ -26,7 +25,7 @@ class APIResource(StripeObject, Generic[T]):
26
25
OBJECT_NAME: ClassVar[str]
27
26
28
27
@classmethod
29
-
@_util.deprecated(
28
+
@deprecated(
30
29
"This method is deprecated and will be removed in a future version of stripe-python. Child classes of APIResource should define their own `retrieve` and use APIResource._request directly."
Copy file name to clipboardExpand all lines: stripe/_custom_method.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
1
fromtypingimportOptional
2
2
fromstripeimport_util
3
3
fromurllib.parseimportquote_plus
4
+
fromtyping_extensionsimportdeprecated
4
5
5
6
6
7
# TODO(major): 1704.
7
-
@_util.deprecated(
8
+
@deprecated(
8
9
"the custom_method class decorator will be removed in a future version of stripe-python. Define custom methods directly and use StripeObject._static_request within."
0 commit comments