Skip to content

Commit 0b24fc4

Browse files
committed
flake8
1 parent 1640e24 commit 0b24fc4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/gfloat/printing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def float_tilde_unless_roundtrip_str(v: float, width: int = 14, d: int = 8) -> s
5151
# it is preceded by a "~" to indicate "approximately equal to"
5252
s = f"{v}"
5353
if len(s) > width:
54-
if abs(v) < 1 and not "e" in s:
54+
if abs(v) < 1 and "e" not in s:
5555
s = f"{v:.{d}f}"
5656
else:
5757
s = f"{v:.{d}}"

src/gfloat/round_ndarray.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from types import ModuleType
55
from .types import FormatInfo, RoundMode
66
import numpy as np
7-
import math
87

98

109
def _isodd(v: np.ndarray) -> np.ndarray:

0 commit comments

Comments
 (0)