From 63cd43bd7662c365b3221afc8b5920d1a5ec9f6a Mon Sep 17 00:00:00 2001 From: Gursheen Anand Date: Tue, 17 Feb 2026 01:01:47 +0530 Subject: [PATCH] fix: exclude keyword-only argument separator from type hint rule --- rules/security/whitelisted.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/security/whitelisted.yml b/rules/security/whitelisted.yml index 794fe43..14ca331 100644 --- a/rules/security/whitelisted.yml +++ b/rules/security/whitelisted.yml @@ -11,8 +11,8 @@ rules: def $FUNC(..., $ARG: $TYPE, ...): ... - metavariable-regex: metavariable: $ARG - # Exclude 'self' and 'cls' as they typically don't take hints - regex: ^(?!self$|cls$).*$ + # Exclude 'self', 'cls', and '*' as they typically don't take hints + regex: ^(?!self$|cls$|\*$).*$ message: "The argument '$ARG' in function '$FUNC' is missing a type hint." - id: guest-whitelisted-method languages: [python]