Skip to content

Commit

Permalink
Ignore strange typing error in CI
Browse files Browse the repository at this point in the history
We are getting a strange type error that does also not happen in the nix
check and can not be reproduced locally.  Hence we ignore it in ci.
  • Loading branch information
lucc committed Jan 3, 2025
1 parent ad40105 commit d7abe96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install .[typing]
- name: Ignore a strange type error that only happens in CI
# This error only happens in CI and I can not reproduce it in the nix
# check or locally:
# khard/khard.py:658: error: Argument "policy" to "message_from_string" has incompatible type "EmailPolicy[EmailMessage]"; expected "Policy[Message[str, str]]" [arg-type]
run: "sed -i '/message = message_from_string/s/$/#type: ignore[arg-type]/' khard/khard.py"
- name: Run the type checker
run: mypy

Expand Down

0 comments on commit d7abe96

Please sign in to comment.