Skip to content

Commit

Permalink
Merge pull request #315 from jorenham/fix-TypeIs-import-error
Browse files Browse the repository at this point in the history
fix `ImportError` with `typing_extensions<4.10`
  • Loading branch information
jorenham authored Sep 7, 2024
2 parents c256bf9 + 4aa8d66 commit f4e1400
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lmo/distributions/_lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
if sys.version_info >= (3, 13):
from typing import TypeIs
else:
from typing_extensions import TypeIs
try:
from typing_extensions import TypeIs
except ImportError:
from typing import TypeGuard as TypeIs

if TYPE_CHECKING:
import lmo.typing.np as lnpt
Expand Down

0 comments on commit f4e1400

Please sign in to comment.