hec.rating.rating_shared

def import_hec() -> module:

Lazy-imports the hec module to prevent circular imports

Returns:

types.ModuleType: the imported hec module

class LookupMethod(enum.Enum):

An enumeration.

NULL = <LookupMethod.NULL: (1, 'Return null if between values or outside range')>
ERROR = <LookupMethod.ERROR: (2, 'Raise an exception if between values or outside range')>
LINEAR = <LookupMethod.LINEAR: (3, 'Linear interpolation or extrapolation of independent and dependent values')>
LOGARITHMIC = <LookupMethod.LOGARITHMIC: (4, 'Logarithmic interpolation or extrapolation of independent and dependent values')>
LINLOG = <LookupMethod.LINLOG: (5, 'Linear interpolation/extrapoloation of independent values, Logarithmic of dependent values')>
LOGLIN = <LookupMethod.LOGLIN: (6, 'Logarithmic interpolation/extrapoloation of independent values, Linear of dependent values')>
PREVIOUS = <LookupMethod.PREVIOUS: (7, 'Return the value that is lower in position')>
NEXT = <LookupMethod.NEXT: (8, 'Return the value that is higher in position')>
NEAREST = <LookupMethod.NEAREST: (9, 'Return the value that is nearest in position')>
LOWER = <LookupMethod.LOWER: (10, 'Return the value that is lower in magnitude')>
HIGHER = <LookupMethod.HIGHER: (11, 'Return the value that is higher in magnitude')>
CLOSEST = <LookupMethod.CLOSEST: (12, 'Return the value that is closest in magnitude')>
@classmethod
def get(cls, key: Union[str, int]) -> LookupMethod:
def replace_indent(s: str, new_indent: str) -> str: