Skip to content

Conversation

@mattmess1221
Copy link

All callable arguments have been updated to match how they are used in code.

Some checks have been extracted to a PEP 742 TypeIs function. A side-effect of this is typing-extensions>4.10 requires python 3.8.

The only functional changes is in moving LimitGroup.request to a function argument, which makes LimitGroup stateless and less prone to a race condition. Limit.scope was also changed from a property to a normal method so request can be passed. Additionally, Limiter.slowapi_startup() has received a parameter app: Starlette. Without it, a NameError: app would be raised when called.

All callable arguments have been updated to match how they are used in code
Some checks have been extracted to a PEP 742 TypeIs function. A side-effect of this is typing-extensions>4.10 requires python 3.8.
The only functional change is in moving LimitGroup.request to a function argument, which makes LimitGroup stateless and less prone to a race condition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant