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

Fix argument name conflict #592

Merged
merged 1 commit into from
Jul 8, 2019
Merged

Fix argument name conflict #592

merged 1 commit into from
Jul 8, 2019

Conversation

ob-stripe
Copy link
Contributor

r? @brandur-stripe
cc @stripe/api-libraries

The APIResource._static_request method defines some regular arguments plus the catch-all **params as the dictionary of actual parameters for the API request. The issue is that one cannot pass an API parameter with the same name as a regular argument.

This PR renames the method and url arguments to method_ and url_ respectively to avoid conflicting with actual API parameters.

Fixes #591.

Copy link
Contributor

@brandur-stripe brandur-stripe left a comment

Choose a reason for hiding this comment

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

LGTM.

@stripe-ci stripe-ci assigned ob-stripe and unassigned brandur-stripe Jul 8, 2019
@ob-stripe ob-stripe merged commit 530d730 into master Jul 8, 2019
@ob-stripe ob-stripe deleted the ob-fix-591 branch July 8, 2019 18:59
@ob-stripe
Copy link
Contributor Author

Released as 2.32.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError when updating webhooks
3 participants