MCPcopy
hub / github.com/pallets/werkzeug / _get_current_object

Method _get_current_object

src/werkzeug/local.py:497–501  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

495 raise TypeError("'name' is required when proxying a 'Local' object.")
496
497 def _get_current_object() -> T:
498 try:
499 return get_name(local) # type: ignore[return-value]
500 except AttributeError:
501 raise RuntimeError(unbound_message) from None
502
503 elif isinstance(local, LocalStack):
504

Callers 3

test_proxy_localFunction · 0.95
test_proxy_callableFunction · 0.95
__get__Method · 0.80

Calls 1

getMethod · 0.45

Tested by 2

test_proxy_localFunction · 0.76
test_proxy_callableFunction · 0.76