paya.util.classes#

findKeyInClassDicts(key, cls, start=0)#

Looks across every dict in the class MRO for the requested key and retrieves the fist available value.

Parameters
  • key (str) – the key to look up

  • cls (type) – the class to inspect

  • start (int) – the start index on the MRO to start scanning from; defaults to 0

Raises

KeyError – The key wasn’t found in any of the MRO dicts.

Returns

The retrieved value.