Skip to content

Commit

Permalink
typing: add asserts for the type checker
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarbenjamin committed Apr 28, 2024
1 parent 4fb0a85 commit 331e683
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sympy/external/gmpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ def _get_gmpy2(sympy_ground_types):

if _SYMPY_GROUND_TYPES == 'gmpy':

assert _gmpy is not None

flint = None
gmpy = _gmpy

Expand Down Expand Up @@ -241,6 +243,8 @@ def iroot(x, n):

elif _SYMPY_GROUND_TYPES == 'flint':

assert _flint is not None

flint = _flint
gmpy = None

Expand Down

0 comments on commit 331e683

Please sign in to comment.