Skip to content

Commit d621210

Browse files
committed
Only import TypeGuard when type checking
1 parent c384631 commit d621210

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shinywidgets/_shinywidgets.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import json
55
import os
66
from contextlib import contextmanager
7-
from typing import TYPE_CHECKING, Any, Optional, Sequence, TypeGuard, Union, cast
7+
from typing import TYPE_CHECKING, Any, Optional, Sequence, Union, cast
88
from uuid import uuid4
99
from weakref import WeakSet
1010

@@ -36,6 +36,7 @@
3636
)
3737

3838
if TYPE_CHECKING:
39+
from typing import TypeGuard
3940
from traitlets.traitlets import Instance
4041

4142

0 commit comments

Comments
 (0)