Commit f94e803
fix: add type casts for MyPy compliance in get_metadata_schema
Add explicit type casts to json.loads() return values to satisfy MyPy's
no-any-return check. The json.loads() function returns Any, but we know
the schema should be a dict[str, Any], so we use cast() to inform the
type checker.
Co-Authored-By: AJ Steers <[email protected]>1 parent 61e9648 commit f94e803
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
0 commit comments