We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Starrifying self.kwargs['headers']['authorization'] in __repr__ overrides access_token in HTTPClient header when __str__ or __repr__ are called.
self.kwargs['headers']['authorization']
__repr__
access_token
__str__
deepcopy()
copy()
json.dumps()
The text was updated successfully, but these errors were encountered:
sserrata
No branches or pull requests
Description
Starrifying
self.kwargs['headers']['authorization']
in__repr__
overridesaccess_token
in HTTPClient header when__str__
or__repr__
are called.Possible Fixes
self.kwargs['headers']['authorization']
.deepcopy()
instead of a shallowcopy()
.Considerations
deepcopy()
might be less performant thancopy()
or evenjson.dumps()
.__repr__
so that it doesn't need to update value ofself.kwargs['headers']['authorization']
might result in "uglier" pattern.The text was updated successfully, but these errors were encountered: