Skip to content

Require kwargs for multi param methods#325

Merged
tribble merged 3 commits intobeta-5.0from
require-kwargs-for-multi-param-methods
Aug 8, 2024
Merged

Require kwargs for multi param methods#325
tribble merged 3 commits intobeta-5.0from
require-kwargs-for-multi-param-methods

Conversation

@tribble
Copy link

@tribble tribble commented Aug 8, 2024

Description

Switch multi-arg public SDK methods to keyword-only.

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[ ] Yes

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.

@tribble tribble force-pushed the require-kwargs-for-multi-param-methods branch from 14efb52 to 84d474d Compare August 8, 2024 15:38
@tribble tribble requested a review from mattgd August 8, 2024 15:39
self.http_client, mock_enroll_factor_response_sms, 200
)
enroll_factor = self.mfa.enroll_factor("sms", None, None, "9204448888")
enroll_factor = self.mfa.enroll_factor(type="sms", phone_number="9204448888")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seemed silly to continue to pass the totp fields here. Removed them.

@tribble tribble marked this pull request as ready for review August 8, 2024 15:40
@tribble tribble requested a review from a team as a code owner August 8, 2024 15:40
@tribble tribble merged commit e386e85 into beta-5.0 Aug 8, 2024
@tribble tribble deleted the require-kwargs-for-multi-param-methods branch August 8, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants