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

Method reload

src/py/reactpy/reactpy/_option.py:120–122  ·  view source on GitHub ↗

Reload this option from its environment variable

(self)

Source from the content-addressed store, hash-verified

118 return self._current
119
120 def reload(self) -> None:
121 """Reload this option from its environment variable"""
122 self.set_current(os.environ.get(self._name, self._default))
123
124 def unset(self) -> None:
125 """Remove the current value, the default will be used until it is set again."""

Callers 2

test_option_reloadFunction · 0.95

Calls 2

set_currentMethod · 0.95
getMethod · 0.45

Tested by 2

test_option_reloadFunction · 0.76