-
Notifications
You must be signed in to change notification settings - Fork 68
[AL-4919] Make params optional, add task result to export task type #876
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
Conversation
46265d4 to
c5bc124
Compare
labelbox/schema/model_run.py
Outdated
| _params = params or {} | ||
| def export_v2(self, | ||
| task_name: Optional[str] = None, | ||
| params: Optional[ModelRunExportParams] = {}) -> Task: |
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.
Assigning a default argument of a dict is bad practice. It isn't re-defined for each function invokation, only when the function is defined.
Technically you aren't modifying this so it should be fine. Also, optional means default value of None - not that it has a default.
I would revert back to how you have it. But just set the value to None by default.
2cfcc56 to
2cfd661
Compare
99bb8b9 to
002d5d9
Compare
002d5d9 to
b1c55c2
Compare
|
|
||
|
|
||
| @pytest.mark.skip(reason="feature under development") | ||
| # @pytest.mark.skip(reason="feature under development") |
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.
You can just delete this line instead of commenting it out
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.
Although I think exports v2 is broken in staging right now.. Maybe leave this until it is more stable.
No description provided.