From d2efddaf4c2bbe6865b4396a4f11f03d9fb43f6a Mon Sep 17 00:00:00 2001 From: Joshua Cannon Date: Wed, 17 Nov 2021 14:20:31 -0600 Subject: [PATCH 1/2] Create README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4c7db91..e07b34a 100644 --- a/README.md +++ b/README.md @@ -350,7 +350,7 @@ argument as missing. See Issue #90.) - *DAR105*: The docstring parameter type is malformed. - *DAR201*: The docstring is missing a return from definition. - *DAR202*: The docstring has a return not in definition. -- *DAR203*: The docstring parameter type doesn't match function. +- *DAR203*: The docstring return type doesn't match function. - *DAR301*: The docstring is missing a yield present in definition. - *DAR302*: The docstring has a yield not in definition. - *DAR401*: The docstring is missing an exception raised. From 0b7f3be6e83f2b9e5b5676b071a3a16307b11004 Mon Sep 17 00:00:00 2001 From: Joshua Cannon Date: Wed, 17 Nov 2021 14:21:28 -0600 Subject: [PATCH 2/2] Update errors.py --- darglint/errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darglint/errors.py b/darglint/errors.py index 4ddf1c5..9f3b76a 100644 --- a/darglint/errors.py +++ b/darglint/errors.py @@ -432,7 +432,7 @@ class ReturnTypeMismatchError(DarglintError): """Describes when a docstring parameter type doesn't match function.""" error_code = 'DAR203' - description = 'The docstring parameter type doesn\'t match function.' + description = 'The docstring return type doesn\'t match function.' def __init__(self, function, expected, actual, line_numbers=None): # type: (Union[ast.FunctionDef, ast.AsyncFunctionDef], str, str, Tuple[int, int]) -> None