|
249 | 249 | textwrap.dedent(
|
250 | 250 | """
|
251 | 251 | Config validation error in <code>{{key}}</code>.
|
252 |
| - Expected one of <code>[0, 1, true, false]</code>, got type <code>{{value.__class__}}</code> (<code>{{value}}</code>). |
| 252 | + Expected one of <code>[0, 1, true, false]</code>, got type <code>{{value|to_class_name}}</code> (<code>{{value}}</code>). |
253 | 253 | Make sure the type of the value is not a string.
|
254 | 254 | """
|
255 | 255 | ).strip(),
|
|
263 | 263 | textwrap.dedent(
|
264 | 264 | """
|
265 | 265 | Config validation error in <code>{{key}}</code>.
|
266 |
| - Expected one of ({{choices}}), got type <code>{{value.__class__}}</code> (<code>{{value}}</code>). |
| 266 | + Expected one of ({{choices}}), got type <code>{{value|to_class_name}}</code> (<code>{{value}}</code>). |
267 | 267 | Double check the type of the value.
|
268 | 268 | A string may be required (e.g. <code>"3.10"</code> insted of <code>3.10</code>)
|
269 | 269 | """
|
|
278 | 278 | textwrap.dedent(
|
279 | 279 | """
|
280 | 280 | Config validation error in <code>{{key}}</code>.
|
281 |
| - Expected a dictionary, got type <code>{{value.__class__}}</code> (<code>{{value}}</code>). |
| 281 | + Expected a dictionary, got type <code>{{value|to_class_name}}</code> (<code>{{value}}</code>). |
282 | 282 | """
|
283 | 283 | ).strip(),
|
284 | 284 | ),
|
|
317 | 317 | textwrap.dedent(
|
318 | 318 | """
|
319 | 319 | Config validation error in <code>{{key}}</code>.
|
320 |
| - Expected a string, got type <code>{{value.__class__}}</code> (<code>{{value}}</code>). |
| 320 | + Expected a string, got type <code>{{value|to_class_name}}</code> (<code>{{value}}</code>). |
321 | 321 | """
|
322 | 322 | ).strip(),
|
323 | 323 | ),
|
|
330 | 330 | textwrap.dedent(
|
331 | 331 | """
|
332 | 332 | Config validation error in <code>{{key}}</code>.
|
333 |
| - Expected a list, got type <code>{{value.__class__}}</code> (<code>{{value}}</code>). |
| 333 | + Expected a list, got type <code>{{value|to_class_name}}</code> (<code>{{value}}</code>). |
334 | 334 | """
|
335 | 335 | ).strip(),
|
336 | 336 | ),
|
|
0 commit comments