Move implementation detail from docstring to comment
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
7b3fa657af
commit
4537d6d838
1 changed files with 3 additions and 5 deletions
|
@ -74,11 +74,9 @@ def quote_str(val) -> str:
|
|||
return "\"{}\"".format(val)
|
||||
|
||||
def combination_pairs(values: List[T]) -> List[Tuple[T, T]]:
|
||||
"""Return all pair combinations from input values.
|
||||
|
||||
The return value is cast, as older versions of mypy are unable to derive
|
||||
the specific type returned by itertools.combinations_with_replacement.
|
||||
"""
|
||||
"""Return all pair combinations from input values."""
|
||||
# The return value is cast, as older versions of mypy are unable to derive
|
||||
# the specific type returned by itertools.combinations_with_replacement.
|
||||
return typing.cast(
|
||||
List[Tuple[T, T]],
|
||||
list(itertools.combinations_with_replacement(values, 2))
|
||||
|
|
Loading…
Reference in a new issue