Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

FIx typo in DAR203 definition #182

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion darglint/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down