Skip to content

Commit 9c7e203

Browse files
committed
Fix after pylint update
1 parent 28a7edf commit 9c7e203

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

.pylintrc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,3 @@ max-statements=50
391391

392392
# Minimum number of public methods for a class (see R0903).
393393
min-public-methods=1
394-
395-
396-
[EXCEPTIONS]
397-
398-
# Exceptions that will emit a warning when being caught. Defaults to
399-
# "Exception"
400-
overgeneral-exceptions=Exception

jepler_udecimal/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,16 +1798,16 @@ def _round_05up(self, prec):
17981798
else:
17991799
return -self._round_down(prec)
18001800

1801-
_pick_rounding_function = dict(
1802-
ROUND_DOWN=_round_down,
1803-
ROUND_UP=_round_up,
1804-
ROUND_HALF_UP=_round_half_up,
1805-
ROUND_HALF_DOWN=_round_half_down,
1806-
ROUND_HALF_EVEN=_round_half_even,
1807-
ROUND_CEILING=_round_ceiling,
1808-
ROUND_FLOOR=_round_floor,
1809-
ROUND_05UP=_round_05up,
1810-
)
1801+
_pick_rounding_function = {
1802+
ROUND_DOWN: _round_down,
1803+
ROUND_UP: _round_up,
1804+
ROUND_HALF_UP: _round_half_up,
1805+
ROUND_HALF_DOWN: _round_half_down,
1806+
ROUND_HALF_EVEN: _round_half_even,
1807+
ROUND_CEILING: _round_ceiling,
1808+
ROUND_FLOOR: _round_floor,
1809+
ROUND_05UP: _round_05up,
1810+
}
18111811

18121812
def __round__(self, n=None):
18131813
"""Round self to the nearest integer, or to a given precision.

0 commit comments

Comments
 (0)