You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG][Python] Configuration objects share a common api_key dict #4389
When creating multiple Configurations using Configuration(), the dictionary in the field api_key is shared across these multiple (different) configurations.
The assertion should fail but it actually does not.
Suggest a fix
It's probably a problem with the default value supplied to the constructor of Configuration. If you supply a {} default value the same dict will be shared between different invocations of the constructor. The standard way to solve this is by putting a default None value and if the value is indeed None then create a new {} inside the constructor.
Activity
wing328 commentedon Nov 17, 2019
Closed via #4485