fix: missing format arg
This commit is contained in:
@ -68,7 +68,9 @@ class Container(dict):
|
|||||||
if len(args) == 1:
|
if len(args) == 1:
|
||||||
if len(kwargs):
|
if len(kwargs):
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
'You can either use {} with one positional argument or with keyword arguments, not both.'
|
'You can either use {} with one positional argument or with keyword arguments, not both.'.format(
|
||||||
|
cls.__name__
|
||||||
|
)
|
||||||
)
|
)
|
||||||
if not args[0]:
|
if not args[0]:
|
||||||
return super().__new__(cls)
|
return super().__new__(cls)
|
||||||
|
|||||||
Reference in New Issue
Block a user