mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
lint: Fix code that evaded our lint checks for string % non-tuple.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
d1b8497afb
commit
643bd18b9f
@@ -174,7 +174,7 @@ def check_dict(required_keys: Iterable[Tuple[str, Validator]]=[],
|
||||
optional_keys_set = set(x[0] for x in optional_keys)
|
||||
delta_keys = set(val.keys()) - required_keys_set - optional_keys_set
|
||||
if len(delta_keys) != 0:
|
||||
return _("Unexpected arguments: %s" % (", ".join(list(delta_keys))))
|
||||
return _("Unexpected arguments: %s" % (", ".join(list(delta_keys)),))
|
||||
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user