-
Notifications
You must be signed in to change notification settings - Fork 157
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
Static typing for profilers #663
Static typing for profilers #663
Conversation
@@ -336,9 +336,11 @@ def diff(self, other_profile: DataLabelerColumn, options: Dict = None) -> Dict: | |||
|
|||
differences = { | |||
"data_label": utils.find_diff_of_lists_and_sets(labels, other_labels), | |||
"avg_predictions": utils.find_diff_of_dicts(avg_preds, other_avg_preds), | |||
"avg_predictions": utils.find_diff_of_dicts( | |||
avg_preds, other_avg_preds # type: ignore |
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.
why does this need # type: ignore
?
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.
avg_preds
and other_avg_preds
can both be None
and utils.find_diff_of_dicts
does not take in None
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.
Would this not indicate a code bug if find_diff_of_dicts
cannot handle None
, but we might be inserting 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.
I changed find_diff_of_dicts
to handle None
in the same way that the other find_diff
functions do.
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.
Few changes requested
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
#608