-
Notifications
You must be signed in to change notification settings - Fork 6
Strip inner boolean from operator check
#55
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
Not sure about this...if you look at the if statements, your suggestion would brake the logic...or am I missing something? Co-authored-by: Patryk Szulczewski <patryk@szulczewski.eu>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
netcompare/check_types.py
Outdated
| # For naming consistency | ||
| # For name consistency. | ||
| reference_data = params | ||
| evaluation_result = operator_evaluator(reference_data["params"], value_to_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.
| evaluation_result = operator_evaluator(reference_data["params"], value_to_compare) | |
| return operator_evaluator(reference_data["params"], value_to_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.
operator_evaluator in evaluators.py typing should be changed from -> Dict to -> Tuple[List, bool]
netcompare/check_types.py
Outdated
| reference_data = params | ||
| evaluation_result = operator_evaluator(reference_data["params"], value_to_compare) | ||
| return evaluation_result, not evaluation_result | ||
| return evaluation_result[1], not evaluation_result[0] |
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.
| return evaluation_result[1], not evaluation_result[0] |
Not needed, bool should be second tuple item as in other checks.
Looks like we should change the order in Operator implementation.
pszulczewski
left a comment
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.
Perfect!
This will fix https://github.com/networktocode-llc/netcompare/issues/54