class documentation

class CallMapping(Mapping[str, Any]): (source)

Constructor: CallMapping(submapping)

View In Hierarchy

Read-only mapping that turns a ()-suffix in key names into an invocation of the key rather than a lookup of the key.

Implementation support for formatWithCall.

Method __getitem__ Look up an item in the submapping for this CallMapping, calling it if key ends with "()".
Method __init__ No summary
Method __iter__ Undocumented
Method __len__ Undocumented
Instance Variable _submapping Undocumented
def __getitem__(self, key: str) -> Any: (source)

Look up an item in the submapping for this CallMapping, calling it if key ends with "()".

def __init__(self, submapping: Mapping[str, Any]): (source)
Parameters
submapping:Mapping[str, Any]Another read-only mapping which will be used to look up items.
def __iter__(self) -> Iterator[Any]: (source)

Undocumented

def __len__(self) -> int: (source)

Undocumented

_submapping = (source)

Undocumented