Closed
Description
Quoting from the Extension API docs (emphasis mine):
The
add()
method accepts three arguments:
key
: A string. The key is used for later reference to the item.value
: The object instance stored in this item.location
: Optional. The items location in relation to other items.
But the source code for the method shows that all three arguments are required:
def add(self, key, value, location):
""" Insert by key location. """
Either the "Optional" should be removed from the docs, or the parameter should be made optional.
I’d mildly prefer the latter, as I have some cases where the location really doesn’t matter, but it’s not a strong preference.
Metadata
Metadata
Assignees
Labels
No labels