-
Notifications
You must be signed in to change notification settings - Fork 36
fix: avoid type error for Python 3 #214
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 validator.is_finite_number(prop): | ||
is_valid = True | ||
|
||
if prop is None or not validator.is_finite_number(prop) or prop <= 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.
The fix part is that not validator.is_finite_number(prop) comes before prop<=0
5 similar comments
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
@oakbani I haven't tried testing Python 2. Can you pls check if Py 2 throws that error too. Let me know or Sohail please. thank you.( @msohailhussain ) |
No this issue was not in python2 |
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.
Looks good.
Summary
Test plan
Added unit test with flush interval passed as string
Issues