Skip to content

Work around spurious mypy test errors - #383

Merged
jcrist merged 1 commit into
mainfrom
work-around-spurious-mypy-errors
Apr 20, 2023
Merged

jcrist merged 1 commit into
mainfrom
work-around-spurious-mypy-errors

Conversation

@jcrist

@jcrist jcrist commented Apr 20, 2023

Copy link
Copy Markdown
Member

Not sure why, but the mypy tests have suddenly started failing in CI only. The failure is due to type stubs missing for an optional dependency (the type stubs should only be needed for type checking the internals of msgspec, not checking user usage of it). I cannot reproduce these issues locally.

By changing around our type annotations and adding a few type: ignore comments, I believe this change should resolve the issues on CI.

Not sure why, but the mypy tests have suddenly started failing in CI
only. The failure is due to type stubs missing for an optional
dependency (the type stubs should only be needed for type checking the
internals of `msgspec`, not checking user usage of it). I cannot
reproduce these issues locally.

By checanging around our type annotations and adding a few `type:
ignore` comments, I believe this change should resolve the issues on CI.
@jcrist
jcrist force-pushed the work-around-spurious-mypy-errors branch from 629f143 to 00eb7c6 Compare April 20, 2023 02:09
@jcrist
jcrist merged commit f5d7d17 into main Apr 20, 2023
@jcrist
jcrist deleted the work-around-spurious-mypy-errors branch April 20, 2023 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant