diff --git a/extras/custom_checks.sh b/extras/custom_checks.sh index 9ae088714..1d5b498c2 100644 --- a/extras/custom_checks.sh +++ b/extras/custom_checks.sh @@ -72,7 +72,7 @@ function check_do_not_use_builtin_random_in_tests() { } function check_deprecated_typing() { - if grep -R '\' "${SOURCE_DIRS[@]}"; then + if grep -RI '\' "${SOURCE_DIRS[@]}"; then echo 'do not use typing.List/Tuple/Dict/... for type annotations use builtin list/tuple/dict/... instead' echo 'for more info check the PEP 585 doc: https://peps.python.org/pep-0585/' return 1