We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa59091 commit 41d8270Copy full SHA for 41d8270
unpythonic/mathseq.py
@@ -51,7 +51,7 @@ class _NoSuchType:
51
from mpmath import mpf, almosteq as mpf_almosteq
52
except ImportError:
53
# Can't use a gensym here since `mpf` must be a unique *type*.
54
- mpf = type(_NoSuchType())
+ mpf = _NoSuchType
55
mpf_almosteq = None
56
57
def _numsign(x):
@@ -73,7 +73,7 @@ def sign(x):
73
74
log = math_log
75
sign = _numsign
76
- _symExpr = type(_NoSuchType())
+ _symExpr = _NoSuchType
77
78
def almosteq(a, b, tol=1e-8):
79
"""Almost-equality that supports several formats.
0 commit comments