Skip to content

Commit 7e7c4eb

Browse files
committed
Fix missing _session
1 parent 40e4716 commit 7e7c4eb

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

shiny/render/renderer/_renderer.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
from __future__ import annotations
22

3-
from typing import Any, Awaitable, Callable, Generic, Optional, TypeVar, Union, cast
3+
from typing import (
4+
TYPE_CHECKING,
5+
Any,
6+
Awaitable,
7+
Callable,
8+
Generic,
9+
Optional,
10+
TypeVar,
11+
Union,
12+
cast,
13+
)
414

515
from htmltools import MetadataNode, Tag, TagList
616

@@ -9,6 +19,9 @@
919
from ..._utils import is_async_callable, wrap_async
1020
from ...types import Jsonifiable
1121

22+
if TYPE_CHECKING:
23+
from ...session import Session
24+
1225
# TODO-barret-docs: Double check docs are rendererd
1326
# Missing first paragraph from some classes: Example: TransformerMetadata.
1427
# No init method for TransformerParams. This is because the `DocClass` object does not
@@ -204,6 +217,7 @@ def __init__(
204217
super().__init__()
205218

206219
self._auto_registered: bool = False
220+
self._session: Session | None = None
207221

208222
# Must be done last
209223
if callable(_fn):

0 commit comments

Comments
 (0)