-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ignore type checker on click
decorators to bypass known library issue
#3746
ignore type checker on click
decorators to bypass known library issue
#3746
Conversation
Passing run #3086 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
90c1768
to
370ac71
Compare
CI test failures here are a known issue and unrelated, see #3736 |
Is there a way to just ignore all typing error from a library in the pyproject.toml? For example I think this works to ignore a bunch of mypy failures for all our tests: https://github.com/ethyca/fides/blob/main/pyproject.toml#L30 |
hmm, i think there should be in theory -- i'd expect it to look like this:
but that's not working when i add it. as a sanity check, when i added this
mypy did stop complaining, as expected. i can keep on digging on it, my guess is that the error's really coming from our module, so it's not effective to ignore errors from the 3rd party lib. we'd have to disable all type checking against that 3rd party lib? even if i can find a different way to do that, it feels a bit heavy-handed to me, i'd prefer not to ignore all type checking against that library, if possible? although it'd likely be an easier change to revert if/when the underlying problem is fixed 😄 |
370ac71
to
a620ebb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe not be as pretty as we'd like but it works. It avoids side-effects that come with more general error suppression or version pinning. Let's go!
Closes #3745
Description Of Changes
Ignore type checker on problematic function calls with decorator wrappers. This is due to a change in
click
version8.1.4
that many others are also hitting: pallets/click#2558See issue descriptions (ours and theirs) for more detail/context.
Follow up tech debt ticket to revert this eventually, when possible: #3749
Code Changes
Steps to Confirm
mypy
static check passes in CIPre-Merge Checklist
CHANGELOG.md