forked from reactive-python/reactpy-django
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
32 lines (28 loc) · 712 Bytes
/
__init__.py
File metadata and controls
32 lines (28 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import contextlib
import nest_asyncio
from reactpy_django import (
components,
decorators,
hooks,
html,
router,
types,
utils,
)
from reactpy_django.websocket.paths import REACTPY_WEBSOCKET_ROUTE
__version__ = "5.1.1"
__all__ = [
"REACTPY_WEBSOCKET_ROUTE",
"components",
"decorators",
"hooks",
"html",
"router",
"types",
"utils",
]
# Fixes bugs with REACTPY_BACKHAUL_THREAD + built-in asyncio event loops.
# Previously, Uvicorn could generate `assert f is self._write_fut` exceptions, and Daphne
# had jittery rendering behaviors. Demonstrated using our "Renders Per Second" test page.
with contextlib.suppress(ValueError):
nest_asyncio.apply()