Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 20e3a48

Browse files
committedAug 1, 2024·
Compatibility fix for Py3.9
1 parent 41d0260 commit 20e3a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎cfspopcon/file_io.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class RoundingFloat(float):
127127
From: https://stackoverflow.com/questions/54370322/how-to-limit-the-number-of-float-digits-jsonencoder-produces
128128
"""
129129

130-
__repr__ = staticmethod(lambda x: f"{x:#.10g}")
130+
__repr__ = staticmethod(lambda x: f"{x:#.10g}") # type:ignore[assignment,unused-ignore]
131131

132132
json.encoder.c_make_encoder = None # type:ignore[attr-defined]
133133
json.encoder.float = RoundingFloat # type:ignore[attr-defined]

0 commit comments

Comments
 (0)
Please sign in to comment.