Skip to content

Commit 41d8270

Browse files
committed
fix silliness
1 parent aa59091 commit 41d8270

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unpythonic/mathseq.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class _NoSuchType:
5151
from mpmath import mpf, almosteq as mpf_almosteq
5252
except ImportError:
5353
# Can't use a gensym here since `mpf` must be a unique *type*.
54-
mpf = type(_NoSuchType())
54+
mpf = _NoSuchType
5555
mpf_almosteq = None
5656

5757
def _numsign(x):
@@ -73,7 +73,7 @@ def sign(x):
7373
except ImportError:
7474
log = math_log
7575
sign = _numsign
76-
_symExpr = type(_NoSuchType())
76+
_symExpr = _NoSuchType
7777

7878
def almosteq(a, b, tol=1e-8):
7979
"""Almost-equality that supports several formats.

0 commit comments

Comments
 (0)