-
-
Notifications
You must be signed in to change notification settings - Fork 279
Mutable reference options.headers #1095
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
Comments
@AsahiSoftWareEngineer I am going to fix bugs |
Hi @AsahiSoftWareEngineer Is this issue fixed? |
@gayathriramanesh Hi, I think that already fixed |
Hey all, as discussed in #1096 this isn't a bug, it is just how Python works. If you want to change a client's options you need to use the We'll make sure this gets included in our docs. Thanks. |
Co-authored-by: Andrew Smith <[email protected]>
a deep copy don't looks like a clever option to copy the options content to the config instance class. I had a bug with this released:
|
If I change the line 71 of supabase._sync.client.py from It's solve this problem |
I will open a issue |
Bug report
Describe the bug
A clear and concise description of what the bug is.
Mutable reference
options.headers
options.headers
is updated increate_client
directry. thats why, The headers may be changed unintentionally if it is shared
ClientOptions` instance other position.To Reproduce
Please execute below source code jupytor notebook.
Expected behavior
Screenshots
System information
Additional context
The text was updated successfully, but these errors were encountered: