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] types: [python]
files: ^examples/ files: ^examples/
args: args:
- --disable=missing-docstring,invalid-name,bad-whitespace - --disable=missing-docstring,invalid-name
- id: pylint - id: pylint
name: lint (code) name: lint (code)
types: [python] types: [python]

View file

@ -8,7 +8,9 @@
from jepler_udecimal import Decimal 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. """Convert Decimal to a money formatted string.
places: required number of places after the decimal point 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 :param bool clamp: If true, change exponents if too high
""" """
def __init__( def __init__( # pylint: disable=too-many-positional-arguments
self, self,
prec=None, prec=None,
rounding=None, rounding=None,