MCPcopy Create free account
hub / github.com/hynek/structlog / wrapped

Method wrapped

tests/test_threadlocal.py:491–497  ·  view source on GitHub ↗

Wrapped documentation

(arg1)

Source from the content-addressed store, hash-verified

489
490 @bound_threadlocal(x=42)
491 def wrapped(arg1):
492 """Wrapped documentation"""
493 with pytest.deprecated_call():
494 bind_threadlocal(y=arg1)
495
496 with pytest.deprecated_call():
497 assert {"x": 42, "y": arg1} == get_threadlocal()
498
499 # I can't find a way for the warnings to be raised from the decorator.
500 with pytest.deprecated_call():

Callers

nothing calls this directly

Calls 2

bind_threadlocalFunction · 0.90
get_threadlocalFunction · 0.90

Tested by

no test coverage detected