Commit 5a2fdc9
authored
Add missing return type annotation to json_extension.dump() (#195)
The `dump()` function wrapper was missing a return type annotation,
causing type checking ambiguity.
## Changes
- Added `-> None` return type annotation to `dump()` in
`gridappsd/json_extension.py`
The function wraps `json.dump()`, which writes to a file object and
returns `None`. The annotation now matches the standard library's
signature.
```python
def dump(
data: Any,
fo: TextIO,
*,
skipkeys=False,
ensure_ascii=True,
check_circular=True,
allow_nan=True,
indent=None,
separators=None,
default=None,
sort_keys=False,
**kw,
) -> None: # Added
_json.dump(...)
```
<!-- START COPILOT CODING AGENT TIPS -->
---
💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).1 file changed
+1
-1
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 | 52 | | |
| |||
0 commit comments