Skip to content

Commit 023d8ca

Browse files
committed
Revert "Remove dataclass decorator from BinaryVector. Instead, add __init__ and __repr__ manually."
This reverts commit 916ec33.
1 parent 916ec33 commit 023d8ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bson/binary.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from __future__ import annotations
1515

1616
import struct
17+
from dataclasses import dataclass
1718
from enum import Enum
1819
from typing import TYPE_CHECKING, Any, Optional, Sequence, Tuple, Type, Union, overload
1920
from uuid import UUID
@@ -226,6 +227,7 @@ class BinaryVectorDtype(Enum):
226227
PACKED_BIT = b"\x10"
227228

228229

230+
@dataclass
229231
class BinaryVector:
230232
"""Vector of numbers along with metadata for binary interoperability.
231233
.. versionadded:: 4.10

0 commit comments

Comments
 (0)