Skip to content

Commit f55a073

Browse files
committed
Update docstring
1 parent ebb17b1 commit f55a073

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/a2a/server/models.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,18 @@ def create_task_model(
166166
TaskModel class with the specified table name.
167167
168168
Example:
169-
# Create a task model with default table name
170-
TaskModel = create_task_model()
169+
.. code-block:: python
171170
172-
# Create a task model with custom table name
173-
CustomTaskModel = create_task_model('my_tasks')
171+
# Create a task model with default table name
172+
TaskModel = create_task_model()
174173
175-
# Use with a custom base
176-
from myapp.database import Base as MyBase
177-
TaskModel = create_task_model('tasks', MyBase)
174+
# Create a task model with custom table name
175+
CustomTaskModel = create_task_model('my_tasks')
176+
177+
# Use with a custom base
178+
from myapp.database import Base as MyBase
179+
180+
TaskModel = create_task_model('tasks', MyBase)
178181
"""
179182

180183
class TaskModel(TaskMixin, base): # type: ignore

0 commit comments

Comments
 (0)