Commit e7086f2
Deep Chand
fix: add type narrowing for pyright reportOptionalSubscript
Add `assert token.claims is not None` before subscript access in
test_access_token_with_claims to satisfy pyright's type narrowing.
Equality comparison (`== custom_claims`) does not narrow Optional types.
Github-Issue:#21191 parent 2054cb6 commit e7086f2
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments