mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-06-25 12:41:56 +03:00
Move implementation detail from docstring to comment
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@ -74,11 +74,9 @@ def quote_str(val) -> str:
|
|||||||
return "\"{}\"".format(val)
|
return "\"{}\"".format(val)
|
||||||
|
|
||||||
def combination_pairs(values: List[T]) -> List[Tuple[T, T]]:
|
def combination_pairs(values: List[T]) -> List[Tuple[T, T]]:
|
||||||
"""Return all pair combinations from input values.
|
"""Return all pair combinations from input values."""
|
||||||
|
# The return value is cast, as older versions of mypy are unable to derive
|
||||||
The return value is cast, as older versions of mypy are unable to derive
|
# the specific type returned by itertools.combinations_with_replacement.
|
||||||
the specific type returned by itertools.combinations_with_replacement.
|
|
||||||
"""
|
|
||||||
return typing.cast(
|
return typing.cast(
|
||||||
List[Tuple[T, T]],
|
List[Tuple[T, T]],
|
||||||
list(itertools.combinations_with_replacement(values, 2))
|
list(itertools.combinations_with_replacement(values, 2))
|
||||||
|
Reference in New Issue
Block a user