class documentation

A condition that checks if a state dict has the given keys.

Static Method has_all Undocumented
Static Method has_any Undocumented
Method __call__ Undocumented
Method __init__ Undocumented
Instance Variable _keys Undocumented
Instance Variable _kind Undocumented
@staticmethod
def has_all(*keys: str|KeyCondition) -> KeyCondition: (source)

Undocumented

@staticmethod
def has_any(*keys: str|KeyCondition) -> KeyCondition: (source)

Undocumented

def __call__(self, state_dict: Mapping[str, object]) -> bool: (source)

Undocumented

def __init__(self, kind: Literal['all', 'any'], keys: tuple[(str|KeyCondition), ...]): (source)

Undocumented

Undocumented

_kind: Literal['all', 'any'] = (source)

Undocumented