Add unittest for Attr/Tag.batch_add, clarify docstrings. Resolves #2125

This commit is contained in:
Griatch 2020-07-18 23:10:46 +02:00
parent 08190a7ff4
commit f615886d24
4 changed files with 32 additions and 5 deletions

View file

@ -593,8 +593,9 @@ class AttributeHandler(object):
repeat-calling add when having many Attributes to add.
Args:
indata (list): List of tuples of varying length representing the
Attribute to add to this object. Supported tuples are
*args (tuple): Each argument should be a tuples (can be of varying
length) representing the Attribute to add to this object.
Supported tuples are
- `(key, value)`
- `(key, value, category)`
- `(key, value, category, lockstring)`