Skip to content

Commit

Permalink
PYTHON-3679 Change cast to type: ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneHarvey committed Apr 27, 2023
1 parent 0d8376f commit e200a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bson/decimal128.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _decimal_to_128(value: _VALUE_OPTIONS) -> Tuple[int, int]:
if significand & (1 << i):
high |= 1 << (i - 64)

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

if high >> 49 == 1:
high = high & 0x7FFFFFFFFFFF
Expand Down

0 comments on commit e200a6e

Please sign in to comment.