Skip to content

Commit

Permalink
Fix two!
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielNoord committed Sep 2, 2022
1 parent 46bbed9 commit 7deb297
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pylint/extensions/_check_docs_utils.py
Expand Up @@ -813,6 +813,10 @@ def match_param_docs(self) -> tuple[set[str], set[str]]:
# should be
if param_type is None and re.match(r"\s*(\*{0,2}\w+)\s*:.+$", entry):
param_type = param_desc
# If the description is "" but we have a type description
# we consider the description to be the type
if not param_desc and param_type:
param_desc = param_type

if param_type:
params_with_type.add(param_name)
Expand Down
Expand Up @@ -409,14 +409,15 @@ def test_with_list_of_default_values(arg, option, option2):
return arg, option, option2


def test_with_descriptions_instead_of_typing(arg, option):
def test_with_descriptions_instead_of_typing(arg, axis, option):
"""We choose to accept description in place of typing as well.
See: https://github.com/PyCQA/pylint/pull/7398.
Parameters
----------
arg : a number type.
axis : int or None
option : {"y", "n"}
Do I do it?
"""
Expand Down

0 comments on commit 7deb297

Please sign in to comment.