ak.forms.IndexedOptionForm#
Defined in awkward.forms.indexedoptionform on line 23.
- class ak.forms.IndexedOptionForm(index, content, *, parameters=None, form_key=None)#
Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- _content: awkward.forms.form.Form#
- _index#
- property index#
- property content#
- copy(index=UNSET, content=UNSET, *, parameters=UNSET, form_key=UNSET)#
- classmethod simplified(index, content, *, parameters=None, form_key=None)#
- _to_dict_part(verbose, toplevel)#
- property type#
- _columns(path, output, list_indicator)#
- _select_columns(match_specifier: awkward.forms.form._SpecifierMatcher) awkward._typing.Self#
- _column_types()#