is_option_spec_like

is_option_spec_like(obj, allow_enums=True): 

LLM Docstring

Test whether an object can be destructured into a (method, options) option specification.

  • obj: Any

    the object to test

  • allow_enums: bool

    allow enum members (using their value as the method)

  • :returns: bool

    whether the object is option-spec-like


Feedback

Examples

Templates

Documentation