[bug] Box upgrade in 3.1.0 causes DynaBox signature change and broke existing code
See original GitHub issueHi @rochacbruno
Describe the bug
I was using the following code in an existing module, and the 3.1.0 release causes an error due to
0e4752a979be8cd5f872a06d049886e589dc7da8 (59be115724f9d973229bc8e1b884a3ae3e4f9bd5) updating Box, which now requires the box_settings
keyword argument.
> data = DynaBox(settings.as_dict(internal=False))
E TypeError: __new__() missing 1 required keyword-only argument: 'box_settings'
To Reproduce
pip install dynaconf==3.1.0
# contents of error.py
from dynaconf import settings
from dynaconf.utils.boxing import DynaBox
data = DynaBox(settings.as_dict())
# Traceback python error.py
(dynaconf) ➜ dynaconf git:(master) ✗ python error.py
Traceback (most recent call last):
File "error.py", line 5, in <module>
data = DynaBox(settings.as_dict())
TypeError: __new__() missing 1 required keyword-only argument: 'box_settings'
(dynaconf) ➜ dynaconf git:(master) ✗ pip list
Package Version
---------- -------
dynaconf 3.1.0
pip 20.1
setuptools 46.1.3
wheel 0.34.2
Expected behavior
Should I add a default argument for box_settings
for dynaconf versions >=3.1.0
? Is DynaBox
considered private? Or is this a bug and will DynaBox
provide a default argument for box_settings
in Box.__new__
?
Cheers, Andreas 😃
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:8 (5 by maintainers)
Top Results From Across the Web
[bug] Box upgrade in 3.1.0 causes DynaBox signature change ...
Hi @rochacbruno. Describe the bug. I was using the following code in an existing module, and the 3.1.0 release causes an error due...
Read more >https://raw.githubusercontent.com/rochacbruno/dyna...
[Bruno Rocha] Shortlog of commits since last release: Bruno Rocha (4): Release version 3.1.8 Bye py 3.7 Multiple fixes for 3.19 (#756) update...
Read more >Untitled
How big is a bull shark, Screen printing business forum, ... Falling angels breaking benjamin, Puppycursus zeist, Smart source 11/2/14, Thermisol eps 300?...
Read more >Change signature | IntelliJ IDEA Documentation - JetBrains
In-place refactoring is available. The Change Signature refactoring combines several modifications that can be applied to a method signature or a class ...
Read more >vocab
345 uk 346 symptoms 347 do 348 illinois 349 source 350 los 351 aol 352 ... 1783 20 1784 passport 1785 change 1786...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This may be related to what I just hit.
@ap-- Your title is fine!
We have 2 problems here:
I will work on fixing it ASAP