lakefs.namedtuple module

LenientNamedTuple Module

class lakefs.namedtuple.LenientNamedTuple(**kwargs)[source]

Bases: object

Class which provides the NamedTuple functionality but allows initializing with unknown fields. The unknown fields will be ignored and mandatory fields are enforced

unknown: dict = {}