Skip to content

Commit

Permalink
Merge pull request #1538 from dandi/gh-1537
Browse files Browse the repository at this point in the history
Fix `PrivateAttr` usage
  • Loading branch information
yarikoptic authored Nov 25, 2024
2 parents 3940aa2 + 39a0e20 commit ff49fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandi/dandiapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ff49fd1

Please sign in to comment.