We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41d0260 commit 20e3a48Copy full SHA for 20e3a48
cfspopcon/file_io.py
@@ -127,7 +127,7 @@ class RoundingFloat(float):
127
From: https://stackoverflow.com/questions/54370322/how-to-limit-the-number-of-float-digits-jsonencoder-produces
128
"""
129
130
- __repr__ = staticmethod(lambda x: f"{x:#.10g}")
+ __repr__ = staticmethod(lambda x: f"{x:#.10g}") # type:ignore[assignment,unused-ignore]
131
132
json.encoder.c_make_encoder = None # type:ignore[attr-defined]
133
json.encoder.float = RoundingFloat # type:ignore[attr-defined]
0 commit comments