(field_indexers)
return StructIndexer()
Returns an immutable container exposing named indexers as attributes.
Returns an immutable container exposing named indexers as attributes.
Returns an immutable container exposing named indexers as attributes .
def make_struct_indexer(field_indexers):
  """Returns an immutable container exposing named indexers as attributes."""

  class StructIndexer:
    __slots__ = ()

    def _asdict(self):
      return field_indexers.copy()

  for name, indexer in field_indexers.items():
    setattr(StructIndexer, name, indexer)

  return StructIndexer()
def make_struct_indexer ( field_indexers ) : class StructIndexer : __slots__ = ( ) def _asdict ( self ) : return field_indexers . copy ( ) for name , indexer in field_indexers . items ( ) : setattr ( StructIndexer , name , indexer ) return StructIndexer ( )