Skip to content

Commit 4e1b0db

Browse files
committed
Fix issues with mypy
1 parent bfde746 commit 4e1b0db

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,12 @@ jobs:
4141
--ignore-missing-imports \
4242
--check-untyped-defs \
4343
--show-error-codes \
44-
--no-error-summary 2>&1)
44+
--no-error-summary 2>&1 || true)
4545
46-
missing_args=$(echo "$mypy_output" | grep -E "Missing positional argument|\[call-arg\]")
47-
48-
if [ -n "$missing_args" ]; then
49-
echo "❌ ERROR: Missing function arguments detected:"
46+
if echo "$mypy_output" | grep -q -E "Missing positional argument|\[call-arg\]"; then
47+
echo "ERROR: Missing function arguments detected:"
5048
echo ""
51-
echo "$missing_args"
49+
echo "$mypy_output" | grep -E "Missing positional argument|\[call-arg\]"
5250
echo ""
5351
echo "When adding/removing parameters from methods, ensure all call sites are updated."
5452
exit 1

0 commit comments

Comments
 (0)