-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[dagster-aws] ignore pyright errors with boto3-stubs #23954
[dagster-aws] ignore pyright errors with boto3-stubs #23954
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @danielgafni and the rest of your teammates on Graphite |
3e312a4
to
cba2bfc
Compare
|
7f389db
to
eac4e63
Compare
ebf9569
to
469c63a
Compare
Can you give some more context on these type errors, why the code is working now, and what the likely fix is? Is there a pattern here? |
Most of them are because of accessing keys in boto3 response dicts. |
Ok. It would be great if in a follow up you could fix the trivial ones (even if it is just doing check.not_none(response.get("Whatever"))
…On Wed, Aug 28, 2024 at 8:43 AM, Daniel Gafni < ***@***.*** > wrote:
Most of them are because of accessing keys in boto3 response dicts.
For some reason most of them are flagged as NonRequired , so accessing with
[] instead of.get() raises a pyright error now.
I think it's fine to ignore these errors since this code actually never
raised runtime errors (so in practice these keys are always set).
—
Reply to this email directly, view it on GitHub (
#23954 (comment) )
, or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AG3IK6JMYM7JI4ENDNHVXETZTXV2ZAVCNFSM6AAAAABNF2OK2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJVG4YDONJVGQ
).
You are receiving this because your review was requested. Message ID: <dagster-io/dagster/pull/23954/c2315707554
@ github. com>
|
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.
Script is pretty great
eac4e63
to
ffc36c4
Compare
469c63a
to
5ce998f
Compare
I wonder why |
a0f68ca
into
08-09-_dagster-aws_add_ecs_pipes
## Summary & Motivation Ignore pyright errors in `dagster-aws` which popped out after the introduction of `boto3-stubs-lite`. I suggest we slowly remove these ignore comments and fix the code for pyright to pass over time. I made a script to do it automatically. ## How I Tested These Changes pyright should be passing now ## Changelog [New | Bug | Docs] > NOCHANGELOG
## Summary & Motivation Ignore pyright errors in `dagster-aws` which popped out after the introduction of `boto3-stubs-lite`. I suggest we slowly remove these ignore comments and fix the code for pyright to pass over time. I made a script to do it automatically. ## How I Tested These Changes pyright should be passing now ## Changelog [New | Bug | Docs] > NOCHANGELOG
Summary & Motivation
Ignore pyright errors in
dagster-aws
which popped out after the introduction ofboto3-stubs-lite
.I suggest we slowly remove these ignore comments and fix the code for pyright to pass over time.
I made a script to do it automatically.
How I Tested These Changes
pyright should be passing now
Changelog [New | Bug | Docs]