mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-19 18:11:30 +01:00
11 lines
198 B
Python
11 lines
198 B
Python
import contextvars
|
|
import types
|
|
|
|
request_global = contextvars.ContextVar(
|
|
"request_global", default=types.SimpleNamespace()
|
|
)
|
|
|
|
|
|
def g() -> types.SimpleNamespace:
|
|
return request_global.get()
|