finesse.parameter.EnumCaster

Overview

class finesse.parameter.EnumCaster(enum, validate)

Bases: object

Enums are irritating as they don’t act like normal types. You need to getitem to go from value to key. They also don’t cast themselves back to themselves as float(1.0) would.