File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ ignore = [
75
75
" ANN101" , # Missing type annotation for self in method
76
76
" ANN102" , # Missing type annotation for cls in classmethod
77
77
" W191" , # Indentation contains tabs
78
+ " UP037" , # Remove quotes from type annotation
78
79
]
79
80
80
81
[tool .ruff .lint .per-file-ignores ]
Original file line number Diff line number Diff line change 15
15
16
16
17
17
class WebhookSigningSecret (Resource ):
18
+ """
19
+ A webhook signing secret.
20
+ """
21
+
18
22
key : str
19
23
20
24
@@ -43,6 +47,10 @@ class InvalidSignatureError(WebhookValidationError):
43
47
44
48
45
49
class Webhooks (Namespace ):
50
+ """
51
+ Namespace for operations related to webhooks.
52
+ """
53
+
46
54
@property
47
55
def default (self ) -> "Webhooks.Default" :
48
56
"""
@@ -52,6 +60,10 @@ def default(self) -> "Webhooks.Default":
52
60
return self .Default (self ._client )
53
61
54
62
class Default (Namespace ):
63
+ """
64
+ Namespace for operations related to the default webhook.
65
+ """
66
+
55
67
def secret (self ) -> WebhookSigningSecret :
56
68
"""
57
69
Get the default webhook signing secret.
@@ -94,7 +106,7 @@ def validate(
94
106
) -> bool : ...
95
107
96
108
@staticmethod
97
- def validate ( # type: ignore
109
+ def validate ( # type: ignore # pylint: disable=too-many-branches,too-many-locals
98
110
request : Optional ["httpx.Request" ] = None ,
99
111
headers : Optional [Dict [str , str ]] = None ,
100
112
body : Optional [str ] = None ,
You can’t perform that action at this time.
0 commit comments