argdigest.StandardizerContractError#

exception argdigest.StandardizerContractError(message=None, *, context=None, detail=None, code=None, **fields)[source]#

A standardizer that did not honour (caller, kwargs) -> mapping.

Forgetting the return is the common case, and without this the failure surfaces much later as AttributeError: ‘NoneType’ object has no attribute ‘items’, which names neither the standardizer nor the library that configured it.

Parameters:
  • message (str | None)

  • context (Context | None)

  • detail (str | None)

  • code (str | None)

  • fields (object)