From 5d282094c5c1a2590776041488251cb10537af3a Mon Sep 17 00:00:00 2001 From: Laurent Savaete Date: Tue, 26 May 2026 22:09:16 +0200 Subject: [PATCH] Clarify use cases for functions in util.py --- slowapi/util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/slowapi/util.py b/slowapi/util.py index c44faa9..568090f 100644 --- a/slowapi/util.py +++ b/slowapi/util.py @@ -1,5 +1,9 @@ from starlette.requests import Request +# The functions below are provided for convenience and for use in tests. +# They are not robust, as the number of issues about them will attest, and +# correcting them for the numerous variations of possible setups is out of +# scope for slowapi. def get_ipaddr(request: Request) -> str: """