-
Notifications
You must be signed in to change notification settings - Fork 47
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
[pyamqp] pylint/mypy/black #314
base: pyproto
Are you sure you want to change the base?
Conversation
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.
left a few comments but o/w lgtm!
Any, | ||
Union, | ||
Optional, | ||
) # pylint: disable=unused-import |
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.
intentional disable unused-import or is this leftover from before?
|
||
def encode_float( | ||
output, value, with_constructor=True, **kwargs | ||
): # pylint: disable=unused-argument |
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'm assuming all the unused-arguments are because of TODOs and they'll be used in the future?
offset = frame_header[4] | ||
frame_type = frame_header[5] | ||
# frame_type = frame_header[5] |
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.
is this a TODO/commented for now or should it be deleted?
offset = frame_header[4] | ||
frame_type = frame_header[5] | ||
# frame_type = frame_header[5] |
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.
TODO?
return (int(utc_now().timestamp()) - token_put_time) >= auth_timeout | ||
else: | ||
return False | ||
return 0 < auth_timeout <= (int(utc_now().timestamp()) - token_put_time) |
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.
😮 Is this Python 3 syntax? Was this always available?
addressing issue: Azure/azure-sdk-for-python#22455