Commit e494d44
authored
Fix types for
The implementation of this function just passes the `raw` value to
`json.loads`, which [is typed as accepting][1] strings, bytes objects,
or bytearrays.
Update the signature of `assertJSONEqual` and `assertJSONNotEqual` to
match.
[1]: https://github.com/python/typeshed/blob/aac4394eb29d86797628b57d6f01f5e17f5ff83f/stdlib/json/__init__.pyi#L40TestCase.assertJSON{Not,}Equal (#2497)1 parent 4908e0e commit e494d44
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
0 commit comments