Skip to content

Commit

Permalink
Only import TypeGuard when type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Dec 17, 2024
1 parent c384631 commit d621210
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shinywidgets/_shinywidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import json
import os
from contextlib import contextmanager
from typing import TYPE_CHECKING, Any, Optional, Sequence, TypeGuard, Union, cast
from typing import TYPE_CHECKING, Any, Optional, Sequence, Union, cast
from uuid import uuid4
from weakref import WeakSet

Expand Down Expand Up @@ -36,6 +36,7 @@
)

if TYPE_CHECKING:
from typing import TypeGuard
from traitlets.traitlets import Instance


Expand Down

0 comments on commit d621210

Please sign in to comment.