MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / use_strict

Method use_strict

pywebio/pin.py:293–298  ·  view source on GitHub ↗

Enable strict mode for getting pin widget value. An AssertionError will be raised when try to get value of pin widgets that are currently not in the page.

(self)

Source from the content-addressed store, hash-verified

291 _strict = False
292
293 def use_strict(self):
294 """
295 Enable strict mode for getting pin widget value.
296 An AssertionError will be raised when try to get value of pin widgets that are currently not in the page.
297 """
298 object.__setattr__(self, '_strict', True)
299
300 def __getattr__(self, name: str):
301 """__getattr__ is only invoked if the attribute wasn't found the usual ways"""

Callers

nothing calls this directly

Calls 1

__setattr__Method · 0.45

Tested by

no test coverage detected