Skip to content

Commit a66b82e

Browse files
committed
Fix docstrings
1 parent fd9b9e1 commit a66b82e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bson/decimal128.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ class DecimalEncoder(TypeEncoder):
6868
opts = CodecOptions(type_registry=TypeRegistry([DecimalEncoder()]))
6969
bson.encode({"d": decimal.Decimal('1.0')}, codec_options=opts)
7070
71-
.. versionadded:: 4.15"""
71+
.. versionadded:: 4.15
72+
"""
7273

7374
@property
7475
def python_type(self) -> Type[Decimal]:
@@ -83,9 +84,10 @@ class DecimalDecoder(TypeDecoder):
8384
8485
For example::
8586
opts = CodecOptions(type_registry=TypeRegistry([DecimalDecoder()]))
86-
bson.decode(b'\x18\x00\x00\x00\x13d\x00\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>0\x00', codec_options=opts)
87+
bson.decode(data, codec_options=opts)
8788
88-
.. versionadded:: 4.15"""
89+
.. versionadded:: 4.15
90+
"""
8991

9092
@property
9193
def bson_type(self) -> Type[Decimal128]:

0 commit comments

Comments
 (0)