MCPcopy Index your code
hub / github.com/reactive-python/reactpy / is_set

Method is_set

src/py/reactpy/reactpy/_option.py:84–86  ·  view source on GitHub ↗

Whether this option has a value other than its default.

(self)

Source from the content-addressed store, hash-verified

82 return handler
83
84 def is_set(self) -> bool:
85 """Whether this option has a value other than its default."""
86 return hasattr(self, "_current")
87
88 def set_current(self, new: Any) -> None:
89 """Set the value of this option

Callers 6

test_option_resetFunction · 0.95
test_option_setFunction · 0.95
test_option_set_defaultFunction · 0.95
set_defaultMethod · 0.95
reset_optionsFunction · 0.80
run_sendFunction · 0.80

Calls

no outgoing calls

Tested by 4

test_option_resetFunction · 0.76
test_option_setFunction · 0.76
test_option_set_defaultFunction · 0.76
reset_optionsFunction · 0.64