Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions slowapi/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -129,7 +126,6 @@ class Limiter:

def __init__(
self,
# app: Starlette = None,
key_func: Callable[..., str],
default_limits: List[StrOrCallableStr] = [],
application_limits: List[StrOrCallableStr] = [],
Expand All @@ -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")
Expand Down