Skip to content

Commit ef6d78e

Browse files
committed
conditional import
1 parent 64743a1 commit ef6d78e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

conjugate/interactive.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
import sys
12
from types import UnionType
23
from typing import Any, Annotated, Iterable
3-
from typing_extensions import get_origin
4+
5+
if sys.version_info >= (3, 13):
6+
from typing import get_origin
7+
else:
8+
from typing_extensions import get_origin
49

510
from conjugate import distributions, models
611
from conjugate.plot import PlotDistMixin

0 commit comments

Comments
 (0)