We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0bbd62b + 9c7e203 commit 273513aCopy full SHA for 273513a
3 files changed
.pre-commit-config.yaml
@@ -18,7 +18,7 @@ repos:
18
- id: end-of-file-fixer
19
- id: trailing-whitespace
20
- repo: https://github.com/pycqa/pylint
21
- rev: v2.15.10
+ rev: v2.16.0b0
22
hooks:
23
- id: pylint
24
name: lint (examples)
.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