-
Notifications
You must be signed in to change notification settings - Fork 47
[sessionauthentication] Code generation: update services and models #447
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 @@ | |||||||||
| """ | ||||||||||
| Create a session token | ||||||||||
| """ | ||||||||||
| endpoint = self.baseUrl + "/sessions" | ||||||||||
| endpoint = self.baseUrl + f"/sessions" | ||||||||||
|
Check warning on line 20 in Adyen/services/sessionAuthentication/session_authentication_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 very long and exceeds common line length limits (like PEP 8's 79 characters), which hurts readability. It's better to wrap long lines. The previous multi-line formatting was preferable.
Suggested change
References
|
||||||||||
|
|
||||||||||
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 a static string
f"/sessions"is unnecessary and doesn't add any value. For improved clarity and idiomatic Python, if you intend to use an f-string for concatenation, you should include all parts of the string within it.