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

Method current

src/py/reactpy/reactpy/_option.py:148–159  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

146
147 @Option.current.getter # type: ignore
148 def current(self) -> _O:
149 try:
150 # we access the current value during init to debug log it
151 # no need to warn unless it's actually used. since this attr
152 # is only set after super().__init__ is called, we can check
153 # for it to determine if it's being accessed by a user.
154 msg = self._deprecation_message
155 except AttributeError:
156 pass
157 else:
158 warn(msg, DeprecationWarning)
159 return super().current

Callers

nothing calls this directly

Calls 1

warnFunction · 0.90

Tested by

no test coverage detected