From 464b525139a23656f7b87e375e38b87926d99089 Mon Sep 17 00:00:00 2001 From: Maxim Kulkin Date: Thu, 11 Aug 2016 11:46:46 -0700 Subject: [PATCH] Cleanup default error messages code in Tuple type --- lollipop/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lollipop/types.py b/lollipop/types.py index d813c48..32c4659 100644 --- a/lollipop/types.py +++ b/lollipop/types.py @@ -385,10 +385,10 @@ class Tuple(Type): :param list item_types: List of item types. :param kwargs: Same keyword arguments as for :class:`Type`. """ - default_error_messages = dict(Type.default_error_messages, **{ + default_error_messages = { 'invalid': 'Value should be list', 'invalid_length': 'Value length should be {expected_length}', - }) + } def __init__(self, item_types, **kwargs): super(Tuple, self).__init__(**kwargs)