Skip to content

Commit

Permalink
fix: resources is already parsed from json
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Jan 3, 2024
1 parent 8e7c628 commit 0ad7905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/noteburst/jupyterclient/jupyterlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ class NotebookExecutionResult(BaseModel):
description="The notebook that was executed, as a JSON string."
)

resources: str = Field(
resources: dict[str, Any] = Field(
description=(
"The resources used to execute the notebook, as a JSON string."
)
Expand Down
2 changes: 1 addition & 1 deletion tests/handlers/v1_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def test_post_nbexec(
result = json.dumps(
{
"notebook": sample_ipynb_executed,
"resources": "{}",
"resources": {},
"error": None,
}
)
Expand Down

0 comments on commit 0ad7905

Please sign in to comment.