Skip to content
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

Add type support to update_group_authorization #70

Merged
merged 3 commits into from
Dec 18, 2024

Conversation

corafid
Copy link
Member

@corafid corafid commented Dec 18, 2024

The main contribution of this PR is:

  • The API used to return the RetryResult object. Now it returns a strong type.
  • It used to be called edit_group_authorization. I renamed to update_group_authorization to match the API name.

While at this, I also changed the _send_request API to only accept objects of type BaseModel. This is to reduce its complexity, and also the unify the way we are sending and receiving objects.

To reduce the complexity of the `_send_request`, and also the unify the
way we are sending and receiving objects, I changed the `_send_request`
method to only accept data of BaseModel type.
- The API used to return the RetryResult object. Now it returns a strong
  type.
- It used to be called `edit_group_authorization`. I renamed to
  `update_group_authorization` to match the API name.
@corafid corafid requested a review from a team as a code owner December 18, 2024 21:30
@corafid corafid merged commit c3b7d9a into main Dec 18, 2024
11 checks passed
@corafid corafid deleted the corafid/feat/improve-typing-support branch December 18, 2024 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants