From f0808352b53948127a7f172fb2fbf103ef4c6d70 Mon Sep 17 00:00:00 2001 From: sayan som Date: Tue, 20 Jan 2026 20:55:46 +0530 Subject: [PATCH] Add type hints to humanize_bytes in httpie.utils --- httpie/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpie/utils.py b/httpie/utils.py index 4735b2be5d..6d93c57500 100644 --- a/httpie/utils.py +++ b/httpie/utils.py @@ -77,7 +77,7 @@ def repr_dict(d: dict) -> str: return pformat(d) -def humanize_bytes(n, precision=2): +def humanize_bytes(n: int, precision: int = 2) -> str: # Author: Doug Latornell # Licence: MIT # URL: https://code.activestate.com/recipes/577081/