From a57c5ba4631ae7fb7b114af2328f28b3731c1f4f Mon Sep 17 00:00:00 2001 From: Kenneth Yang Date: Wed, 20 Mar 2024 16:07:32 -0700 Subject: [PATCH] Use factory on list --- src/vbl_aquarium/models/ephys_link.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vbl_aquarium/models/ephys_link.py b/src/vbl_aquarium/models/ephys_link.py index 4330795..f52fc8d 100644 --- a/src/vbl_aquarium/models/ephys_link.py +++ b/src/vbl_aquarium/models/ephys_link.py @@ -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 @@ -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 = ""