typedargs.types.map module

Summary

Classes:

map

Reference

class typedargs.types.map.map(keytype, valuetype, **kwargs)[source]

Bases: object

MAPPED_COMPLEX_TYPE = typing.Dict
static Build(*types, **kwargs)[source]
classmethod convert(value, **kwargs)[source]
default_formatter(value, **kwargs)[source]
format_one_line(value: dict, key_formatter: str = None, val_formatter: str = None, **kwargs) → str[source]

Get string representation for the passed dict object.

Parameters:
  • value – dict object to translate to string.
  • key_formatter – formatter for dict keys
  • val_formatter – formatter for dict values
Returns:

string representation of arg