Skip to content

MAINT: apply refurb suggestion #515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 16, 2023
Merged
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
6 changes: 3 additions & 3 deletions numpydoc/tests/test_docscrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,11 +851,11 @@ def test_see_also(prefix):

if func == "func_h":
assert role == "meth"
elif func == "baz.obj_q" or func == "~baz.obj_r":
elif func in ("baz.obj_q", "~baz.obj_r"):
assert role == "obj"
elif func == "class_j":
assert role == "class"
elif func in ["func_h1", "func_h2"]:
elif func in ("func_h1", "func_h2"):
assert role == "meth"
else:
assert role is None, str([func, role])
Expand All @@ -866,7 +866,7 @@ def test_see_also(prefix):
assert desc == ["some other func over", "multiple lines"]
elif func == "class_j":
assert desc == ["fubar", "foobar"]
elif func in ["func_f2", "func_g2", "func_h2", "func_j2"]:
elif func in ("func_f2", "func_g2", "func_h2", "func_j2"):
assert desc == ["description of multiple"], str(
[desc, ["description of multiple"]]
)
Expand Down