Ran black on branc

This commit is contained in:
Griatch 2019-12-16 20:31:42 +01:00
parent 6effb6f456
commit 4ea6209123
230 changed files with 7108 additions and 2395 deletions

View file

@ -300,7 +300,9 @@ def _obj_search(*args, **kwargs):
if len(targets) > 1:
raise ValueError(
"$obj: Query '{query}' gave {nmatches} matches. Limit your "
"query or use $objlist instead.".format(query=query, nmatches=len(targets))
"query or use $objlist instead.".format(
query=query, nmatches=len(targets)
)
)
target = targets[0]
if account:
@ -332,7 +334,9 @@ def objlist(*args, **kwargs):
Returns list with one or more Objects searched globally by key, alias or #dbref.
"""
return ["#{}".format(obj.id) for obj in _obj_search(return_list=True, *args, **kwargs)]
return [
"#{}".format(obj.id) for obj in _obj_search(return_list=True, *args, **kwargs)
]
def dbref(*args, **kwargs):