concepts.dsl.dsl_functions.FunctionArgumentResolutionContext#

class FunctionArgumentResolutionContext[source]#

Bases: OptionContext

A context manager for controlling the function argument resolution.

check_missing#

whether to check if the function argument is missing.

Type:

bool

check_type#

whether to check if the function argument type is correct.

Type:

bool

check_overloaded_ambiguity#

whether to check if the function argument resolution is ambiguous.

Type:

bool

exc_verbose#

wWhether to print verbose error message.

Type:

bool

Methods

as_default()

Make this option context the current context.

exc([exc_type, from_])

get_default()

Get the current option context.

get_option(name)

Get the option value of the current context.

set_default_option(name, value)

Set the option value for the current context.

__init__(**init_kwargs)#
__new__(**kwargs)#
as_default()#

Make this option context the current context. It will overwrite the current option values.

exc(exc_type=None, from_=None)[source]#
classmethod get_default()#

Get the current option context.

classmethod get_option(name)#

Get the option value of the current context.

classmethod set_default_option(name, value)#

Set the option value for the current context.