-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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 pylint (PL) #4032
Conversation
@@ -1525,7 +1525,7 @@ async def _execute_tasks(self, tasks: list[asyncio.Task], lock: asyncio.Lock) -> | |||
for t in tasks[i + 1 :]: | |||
t.cancel() | |||
raise result | |||
if isinstance(result, tuple) and len(result) == 5: | |||
if isinstance(result, tuple) and len(result) == 5: # TODO: what 5 corresponds to ? |
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.
@ogabrielluiz do you know what this corresponds to ?
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.
possibly related to the size of the result of this method:
def _update_built_object_and_artifacts(self, result: Any | tuple[Any, dict] | tuple[Component, Any, dict]): |
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.
The tuple shall be VertexBuildResult
. I fixed it. PTAL.
This pull request is automatically being deployed by Amplify Hosting (learn more). |
@@ -26,7 +28,7 @@ class UpdateDataComponent(Component): | |||
info="Number of fields to be added to the record.", | |||
real_time_refresh=True, | |||
value=0, | |||
range_spec=RangeSpec(min=1, max=15, step=1, step_type="int"), | |||
range_spec=RangeSpec(min=1, max=MAX_NUMBER_OF_FIELDS, step=1, step_type="int"), |
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.
Gotta be careful with this because we currently do not eval variables outside the class unless they are import statements
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.
Got it!
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.
done
if isinstance(result, VertexBuildResult): | ||
vertices.append(result.vertex) |
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 makes sense, I just don't know how it was working before.
* Add ruff rules for pylint (PL) * Changes following review
Add ruff rules for pylint (PL)