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):
68
68
opts = CodecOptions(type_registry=TypeRegistry([DecimalEncoder()]))
69
69
bson.encode({"d": decimal.Decimal('1.0')}, codec_options=opts)
70
70
71
- .. versionadded:: 4.15"""
71
+ .. versionadded:: 4.15
72
+ """
72
73
73
74
@property
74
75
def python_type (self ) -> Type [Decimal ]:
@@ -83,9 +84,10 @@ class DecimalDecoder(TypeDecoder):
83
84
84
85
For example::
85
86
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)
87
88
88
- .. versionadded:: 4.15"""
89
+ .. versionadded:: 4.15
90
+ """
89
91
90
92
@property
91
93
def bson_type (self ) -> Type [Decimal128 ]:
You can’t perform that action at this time.
0 commit comments