Repository navigation
Commit 0de7c86
fix(kernel): narrow access_token before the foreign-JWT check
mypy (check-types) rejected passing the Optional access_token to
_is_foreign_jwt, because bool(access_token) does not narrow its type. Use
`access_token and _is_foreign_jwt(...)` inside bool(), which narrows it.
The behavior is the same; the session tests pass.
Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Cathleen Yan <58714163+cathleeny@users.noreply.github.com>1 parent 5082c7e commit 0de7c86
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
0 commit comments