Fix after pylint update
This commit is contained in:
parent
28a7edf0cc
commit
9c7e203e90
2 changed files with 10 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue