Fix after pylint update

This commit is contained in:
Jeff Epler 2023-01-17 07:51:58 -06:00
parent 28a7edf0cc
commit 9c7e203e90
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE
2 changed files with 10 additions and 17 deletions

View file

@ -391,10 +391,3 @@ max-statements=50
# Minimum number of public methods for a class (see R0903).
min-public-methods=1
[EXCEPTIONS]
# Exceptions that will emit a warning when being caught. Defaults to
# "Exception"
overgeneral-exceptions=Exception

View file

@ -1798,16 +1798,16 @@ class Decimal(object):
else:
return -self._round_down(prec)
_pick_rounding_function = dict(
ROUND_DOWN=_round_down,
ROUND_UP=_round_up,
ROUND_HALF_UP=_round_half_up,
ROUND_HALF_DOWN=_round_half_down,
ROUND_HALF_EVEN=_round_half_even,
ROUND_CEILING=_round_ceiling,
ROUND_FLOOR=_round_floor,
ROUND_05UP=_round_05up,
)
_pick_rounding_function = {
ROUND_DOWN: _round_down,
ROUND_UP: _round_up,
ROUND_HALF_UP: _round_half_up,
ROUND_HALF_DOWN: _round_half_down,
ROUND_HALF_EVEN: _round_half_even,
ROUND_CEILING: _round_ceiling,
ROUND_FLOOR: _round_floor,
ROUND_05UP: _round_05up,
}
def __round__(self, n=None):
"""Round self to the nearest integer, or to a given precision.