Skip to content

Commit bc01e54

Browse files
committed
fix doc build
1 parent 8bded75 commit bc01e54

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

are/simulation/gui/server/graphql/mutation.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import json
99

1010
import strawberry
11+
from strawberry.scalars import JSON
1112

1213
from are.simulation.gui.server.graphql.common import make_async
1314
from are.simulation.gui.server.graphql.subscription import clear_graphql_cache
@@ -17,7 +18,6 @@
1718
)
1819
from are.simulation.types import EventTimeComparator, EventType
1920
from are.simulation.utils import make_serializable
20-
from strawberry.scalars import JSON
2121

2222

2323
@strawberry.type
@@ -54,7 +54,9 @@ def set_scenario(
5454
@strawberry.mutation
5555
@make_async
5656
def set_agent_name(
57-
self, agent_id: str | None, session_id: str # type: ignore
57+
self,
58+
agent_id: str | None,
59+
session_id: str, # type: ignore
5860
) -> JSON | None: # type: ignore
5961
"""Set the agent name for a simulation session.
6062
@@ -74,7 +76,9 @@ def set_agent_name(
7476
@strawberry.mutation
7577
@make_async
7678
def set_agent_config(
77-
self, agent_config: JSON | None, session_id: str # type: ignore
79+
self,
80+
agent_config: JSON | None,
81+
session_id: str, # type: ignore
7882
) -> JSON | None: # type: ignore
7983
"""Set the agent configuration for a simulation session.
8084

are/simulation/gui/server/graphql/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import os
99

1010
import strawberry
11+
from strawberry.scalars import JSON
1112

1213
from are.simulation.gui.server.graphql.common import make_async
1314
from are.simulation.gui.server.graphql.types import (
@@ -18,7 +19,6 @@
1819
)
1920
from are.simulation.gui.server.scenarios import GUI_SCENARIOS
2021
from are.simulation.types import CapabilityTag
21-
from strawberry.scalars import JSON
2222

2323

2424
@strawberry.type

docs/nitpick-exceptions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,4 @@ py:class are.simulation.validation.constants.ToolSoftCheckerTypeRegistry
185185
# python
186186
py:class type
187187
py:class shuffle
188+
py:data typing.Union

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ furo>=2024.8.6
33
sphinx-autobuild>=2024.10.3
44
sphinx-design>=0.6
55
sphinxcontrib-mermaid==1.0.0
6-
sphinx-autodoc-typehints==3.0.1
6+
sphinx-autodoc-typehints>=2.2.3
77
sphinx-copybutton==0.5.2
88
sphinx-favicon==1.0.1
99
sphinxcontrib-googleanalytics==0.5

0 commit comments

Comments
 (0)