quotes in docstring

This commit is contained in:
Will McGugan
2021-10-18 08:48:48 +01:00
committed by GitHub
parent 9fe8904095
commit 10a5cf24b3

View File

@@ -7,7 +7,7 @@ def friendly_list(words: Iterable[str], joiner: str = "or") -> str:
"""Generate a list of words as readable prose.
>>> friendly_list(["foo", "bar", "baz"])
"foo, bar, or baz"
"'foo', 'bar', or 'baz'"
Args:
words (Iterable[str]): A list of words.