decorators: Migrate to typed_endpoint.

Modify `semgrep-py.yml` to treat arguments after `*args` as
keyword-only arguments.
This commit is contained in:
Kenneth Rodrigues
2024-08-15 14:15:39 +05:30
committed by Tim Abbott
parent 47ebef057e
commit 86bf0d3ea3
3 changed files with 19 additions and 14 deletions

View File

@@ -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,