We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28a7edf commit 9c7e203Copy full SHA for 9c7e203
2 files changed
.pylintrc
@@ -391,10 +391,3 @@ max-statements=50
391
392
# Minimum number of public methods for a class (see R0903).
393
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
@@ -1798,16 +1798,16 @@ def _round_05up(self, prec):
1798
else:
1799
return -self._round_down(prec)
1800
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
- )
+ _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,
+ }
1811
1812
def __round__(self, n=None):
1813
"""Round self to the nearest integer, or to a given precision.
0 commit comments