-
Notifications
You must be signed in to change notification settings - Fork 47
[dataprotection] Code generation: update services and models #446
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -17,8 +17,7 @@ | |||||||||
| """ | ||||||||||
| Submit a Subject Erasure Request. | ||||||||||
| """ | ||||||||||
| endpoint = self.baseUrl + "/requestSubjectErasure" | ||||||||||
| endpoint = self.baseUrl + f"/requestSubjectErasure" | ||||||||||
|
Check warning on line 20 in Adyen/services/dataProtection/data_protection_api.py
|
||||||||||
| method = "POST" | ||||||||||
| return self.client.call_adyen_api( | ||||||||||
| request, self.service, method, endpoint, idempotency_key, **kwargs | ||||||||||
| ) | ||||||||||
| return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line is 100 characters long, which exceeds the common recommendation of 79 or 88 characters from style guides like PEP 8, making it harder to read. The previous multi-line format was more readable and compliant with standard line length limits.
Suggested change
|
||||||||||
|
|
||||||||||
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.
The use of an f-string for
"/requestSubjectErasure"is redundant as it contains no expressions to interpolate. To properly leverage f-strings for string concatenation and improve readability, you should format the entire endpoint string as a single f-string.