@@ -79,7 +79,7 @@ def __init__(self, obj='', key='', **kwargs):
79
79
"'help(plotly.graph_objs.{obj_name})' for more information."
80
80
"" .format (key = key , obj_name = obj .__class__ .__name__ )
81
81
)
82
- plain_message = "invalid key, '{}', in '{}' dictionary " \
82
+ plain_message = "invalid key, '{}', for '{}' object " \
83
83
"" .format (key , obj .__class__ .__name__ )
84
84
super (PlotlyDictKeyError , self ).__init__ (message = message ,
85
85
path = [key ],
@@ -98,8 +98,8 @@ def __init__(self, obj='', key='', value='', val_types='', **kwargs):
98
98
val_types = val_types ,
99
99
obj_name = obj .__class__ .__name__ )
100
100
)
101
- plain_message = ("invalid value associated with key, '{}', in "
102
- "'{}' dictionary " .format (key , obj .__class__ .__name__ ))
101
+ plain_message = ("invalid value associated with key, '{}', for "
102
+ "'{}' object " .format (key , obj .__class__ .__name__ ))
103
103
super (PlotlyDictValueError , self ).__init__ (message = message ,
104
104
plain_message = plain_message ,
105
105
path = [key ],
@@ -113,7 +113,7 @@ def __init__(self, obj='', index='', entry='', **kwargs):
113
113
"" .format (index , obj .__class__ .__name__ )
114
114
)
115
115
plain_message = (
116
- "The entry at index, '{}', in '{}' list is invalid."
116
+ "The entry at index, '{}', in '{}' object is invalid."
117
117
"" .format (index , obj .__class__ .__name__ )
118
118
)
119
119
super (PlotlyListEntryError , self ).__init__ (message = message ,
@@ -131,7 +131,7 @@ def __init__(self, obj='', index='', **kwargs):
131
131
)
132
132
plain_message = (
133
133
"The 'data' entry at index, '{}', is invalid because it does "
134
- "not contain a valid 'type' key-value . This is required for "
134
+ "not contain a valid 'type' key. This is required for "
135
135
"valid 'data' lists." .format (index ))
136
136
super (PlotlyDataTypeError , self ).__init__ (message = message ,
137
137
plain_message = plain_message ,
0 commit comments