Commit c410943
Add assertion for extra_data type narrowing in tests
Added `assert self.extra_data is not None` after assignment in
TestUserSocialAuth.__init__. This narrows the type from
`dict[str, Any] | None` (from base class) to `dict[str, Any]`
for the type checker, eliminating 76 type errors where tests
subscript extra_data.
The assertion is always true since line 90 assigns `extra_data or {}`,
ensuring extra_data is never None in tests.
Co-authored-by: nijel <[email protected]>1 parent 65dccf3 commit c410943
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| |||
0 commit comments