Skip to content

Commit e200a6e

Browse files
committed
PYTHON-3679 Change cast to type: ignore
1 parent 0d8376f commit e200a6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bson/decimal128.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _decimal_to_128(value: _VALUE_OPTIONS) -> Tuple[int, int]:
100100
if significand & (1 << i):
101101
high |= 1 << (i - 64)
102102

103-
biased_exponent = cast(int, exponent) + _EXPONENT_BIAS
103+
biased_exponent = exponent + _EXPONENT_BIAS # type: ignore[operator]
104104

105105
if high >> 49 == 1:
106106
high = high & 0x7FFFFFFFFFFF

0 commit comments

Comments
 (0)