Skip to content

Commit

Permalink
Use factory on list
Browse files Browse the repository at this point in the history
  • Loading branch information
kjy5 committed Mar 20, 2024
1 parent 8edfa68 commit a57c5ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vbl_aquarium/models/ephys_link.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from __future__ import annotations

from pydantic import Field

from vbl_aquarium.models.unity import Vector3, Vector4
from vbl_aquarium.utils.vbl_base_model import VBLBaseModel

Expand Down Expand Up @@ -78,7 +80,7 @@ class GetManipulatorsResponse(VBLBaseModel):
:type error: str
"""

manipulators: list[str] = []
manipulators: list[str] = Field(default_factory=list)
num_axes: int = 0
dimensions: Vector3 = Vector3()
error: str = ""
Expand Down

0 comments on commit a57c5ba

Please sign in to comment.