File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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 \x13 d \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 ]:
You can’t perform that action at this time.
0 commit comments