Conversation
seratch
left a comment
There was a problem hiding this comment.
Thank you very much for improving this
| refreshed_installation.user_token = refresh_response.get("access_token") | ||
| refreshed_installation.user_refresh_token = refresh_response.get("refresh_token") | ||
| refreshed_installation.user_token_expires_at = int(time()) + int(refresh_response.get("expires_in")) | ||
| return refreshed_installation # type: ignore |
There was a problem hiding this comment.
This may be still necessary if the pytype validation fails. In the case, could you revert this change?
There was a problem hiding this comment.
It seems that pytype is happy with this removal. We can keep this as-is,
There was a problem hiding this comment.
pytype validation has passed!
Is not right?
There was a problem hiding this comment.
Sorry I meant you don't need to change this!
|
@ehdgua01 Thank you very much for taking the time to correct the type hint! |
|
Ok, I signed it 😄 |
seratch
left a comment
There was a problem hiding this comment.
LGTM. Once the CI builds become successful, we will merge this PR!
Codecov Report
@@ Coverage Diff @@
## main #1234 +/- ##
==========================================
- Coverage 86.57% 86.53% -0.04%
==========================================
Files 111 111
Lines 10986 10986
==========================================
- Hits 9511 9507 -4
- Misses 1475 1479 +4
Continue to review full report at Codecov.
|
Summary
Fix wrong return type annotation
Category (place an
xin each of the[ ])/docs-src(Documents, have you run./scripts/docs.sh?)/docs-src-v2(Documents, have you run./scripts/docs-v2.sh?)/tutorial(PythOnBoardingBot tutorial)tests/integration_tests(Automated tests for this library)Requirements (place an
xin each[ ])python3 -m venv .venv && source .venv/bin/activate && ./scripts/run_validation.shafter making the changes.