-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ref: Add ruff rules for bugbear (B) #3983
Conversation
@@ -63,6 +63,6 @@ def create_state_model_from_graph(graph: BaseModel) -> type[BaseModel]: | |||
] | |||
fields = { | |||
camel_to_snake(vertex.id): state_model_getter | |||
for vertex, state_model_getter in zip(graph.vertices, state_model_getters) | |||
for vertex, state_model_getter in zip(graph.vertices, state_model_getters, strict=False) |
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.
Reading the code, it seems graph.vertices
and state_model_getters
could have distinct size. Is it intended ?
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.
Yeah. We probably need to add the same checks on the second iteration or just build the fields dict in one go.
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.
This part is still highly experimental and requires a lot more testing/inclusion into features
This pull request is automatically being deployed by Amplify Hosting (learn more). |
7529086
to
c152424
Compare
f5b1b2a
to
6d6a658
Compare
@ogabrielluiz thanks for the review. |
e7020ed
to
36ebdfd
Compare
36ebdfd
to
8305036
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.
LGTM
No description provided.