mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
decorators: Migrate to typed_endpoint.
Modify `semgrep-py.yml` to treat arguments after `*args` as keyword-only arguments.
This commit is contained in:
committed by
Tim Abbott
parent
47ebef057e
commit
86bf0d3ea3
@@ -266,6 +266,10 @@ rules:
|
||||
@typed_endpoint
|
||||
def $F(..., *, ...)-> ...:
|
||||
...
|
||||
- pattern-not-inside: |
|
||||
@typed_endpoint
|
||||
def $F(..., *args, ...)-> ...:
|
||||
...
|
||||
message: |
|
||||
@typed_endpoint should not be used without keyword-only parameters.
|
||||
Make parameters to be parsed from the request as keyword-only,
|
||||
|
||||
Reference in New Issue
Block a user