Fix new diagnostics from new pylint

This commit is contained in:
Jeff Epler 2024-09-23 20:50:06 -05:00
parent 77b3687867
commit b25a006a4b
3 changed files with 5 additions and 3 deletions

View file

@ -25,7 +25,7 @@ repos:
types: [python]
files: ^examples/
args:
- --disable=missing-docstring,invalid-name,bad-whitespace
- --disable=missing-docstring,invalid-name
- id: pylint
name: lint (code)
types: [python]

View file

@ -8,7 +8,9 @@
from jepler_udecimal import Decimal
def moneyfmt(value, places=2, curr="", sep=",", dp=".", pos="", neg="-", trailneg=""):
def moneyfmt(
value, *, places=2, curr="", sep=",", dp=".", pos="", neg="-", trailneg=""
):
"""Convert Decimal to a money formatted string.
places: required number of places after the decimal point

View file

@ -3357,7 +3357,7 @@ class Context(object):
:param bool clamp: If true, change exponents if too high
"""
def __init__(
def __init__( # pylint: disable=too-many-positional-arguments
self,
prec=None,
rounding=None,