Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7b28e31

Browse files
Fix typing
1 parent b6b9d24 commit 7b28e31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎bson/decimal128.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ class DecimalEncoder(TypeEncoder):
7070
.. versionadded:: 4.15"""
7171

7272
@property
73-
def python_type(self):
73+
def python_type(self)->Type[Decimal]:
7474
return Decimal
7575

76-
def transform_python(self, value):
76+
def transform_python(self, value: Any) ->Decimal128:
7777
return Decimal128(value)
7878

7979

@@ -86,10 +86,10 @@ class DecimalDecoder(TypeDecoder):
8686
.. versionadded:: 4.15"""
8787

8888
@property
89-
def bson_type(self):
89+
def bson_type(self)->Type[Decimal128]:
9090
return Decimal128
9191

92-
def transform_bson(self, value):
92+
def transform_bson(self, value: Any) ->decimal.Decimal:
9393
return value.to_decimal()
9494

9595

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /