From 39a0e20e4a2cbdca8196152f4605cb0070b8161f Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Mon, 25 Nov 2024 14:36:27 -0500 Subject: [PATCH] Fix `PrivateAttr` usage --- dandi/dandiapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dandi/dandiapi.py b/dandi/dandiapi.py index 88951a2cd..ffe727efd 100644 --- a/dandi/dandiapi.py +++ b/dandi/dandiapi.py @@ -1378,7 +1378,7 @@ class BaseRemoteAsset(ABC, APIBase): modified: datetime #: Metadata supplied at initialization; returned when metadata is requested #: instead of performing an API call - _metadata: Optional[Dict[str, Any]] = PrivateAttr(default_factory=None) + _metadata: Optional[Dict[str, Any]] = PrivateAttr(default=None) def __init__(self, **data: Any) -> None: # type: ignore[no-redef] super().__init__(**data)