Skip to content

Commit b4cf943

Browse files
committed
Fix typing for unpacked tuple in middleware constructor
1 parent 2ef342d commit b4cf943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conduit/api/middlewares.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class RateLimitingMiddleware(BaseHTTPMiddleware):
1616
rate_limit_duration = timedelta(minutes=1)
1717
rate_limit_requests = 100
1818

19-
def __init__(self, *args: Unpack[tuple[Any]], **kwargs: Any):
19+
def __init__(self, *args: *tuple[Any], **kwargs: Any):
2020
super().__init__(*args, **kwargs)
2121
# Dictionary to store request counts for each IP.
2222
self.request_counts: dict[str, tuple[int, datetime]] = {}

0 commit comments

Comments
 (0)