| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -88,7 +88,7 @@ def pre_parse_json(self, data: dict[str, Any]) -> dict[str, Any]: | |||
| 88 | 88 | pre_parsed = json.loads(data[field_name]) | |
| 89 | 89 | except json.JSONDecodeError: | |
| 90 | 90 | continue # Not JSON - skip | |
| 91 | - if isinstance(pre_parsed, (str, int, float)): | ||
| 91 | + if isinstance(pre_parsed, str | int | float): | ||
| 92 | 92 | # This is likely that the raw value is e.g. `"hello"` which we | |
| 93 | 93 | # Should really be parsed as '"hello"' in Python - but if we parse | |
| 94 | 94 | # it as JSON it'll turn into just 'hello'. So we skip it. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments