Commit ea3b99c
committed
fix: cast idToken to str to satisfy mypy [no-any-return] on line 83
firebase is an untyped package (type: ignore[import-untyped]), so
self._hub_user['idToken'] resolves to Any. Since _get_auth_token()
is declared -> str, mypy raised:
error: Returning Any from function declared to return 'str' [no-any-return]
Fix: wrap with str() cast which is always safe since Firebase idTokens
are JWT strings.1 parent e465487 commit ea3b99c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
0 commit comments