From cc3daf5e814ec49063771e8b18ad12c445e42448 Mon Sep 17 00:00:00 2001 From: Sviatoslav Bobryshev <61021258+sbobryshev@users.noreply.github.com> Date: Wed, 22 Oct 2025 15:55:47 +0300 Subject: [PATCH] Clean up app parameter comments in extension.py Removed commented-out code related to app parameter. --- slowapi/extension.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/slowapi/extension.py b/slowapi/extension.py index 050f882..af2cf75 100644 --- a/slowapi/extension.py +++ b/slowapi/extension.py @@ -93,9 +93,6 @@ class Limiter: ** parameter ** - * **app**: `Starlette/FastAPI` instance to initialize the extension - with. - * **default_limits**: a variable list of strings or callables returning strings denoting global limits to apply to all routes. `ratelimit-string` for more details. @@ -129,7 +126,6 @@ class Limiter: def __init__( self, - # app: Starlette = None, key_func: Callable[..., str], default_limits: List[StrOrCallableStr] = [], application_limits: List[StrOrCallableStr] = [], @@ -150,10 +146,6 @@ def __init__( """ Configure the rate limiter at app level """ - # assert app is not None, "Passing the app instance to the limiter is required" - # self.app = app - # app.state.limiter = self - self.logger = logging.getLogger("slowapi") dotenv_file_exists = os.path.isfile(".env")