Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 12, 2022
1 parent 05f6c0f commit 9245532
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/humanize/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@


def format_non_finite(value: float) -> str:
"""Utility function to handle infinite and nan cases.
"""
"""Utility function to handle infinite and nan cases."""
if math.isnan(value):
return "NaN"
if math.isinf(value) and value < 0:
Expand Down

0 comments on commit 9245532

Please sign in to comment.