From a327b4da8752edb5c14c4d56b6ab6bc66a6a1f68 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Thu, 19 Oct 2023 12:25:45 -0500 Subject: [PATCH] sequence -> iterable in tutorial (#8067) Very minor follow to https://github.com/astral-sh/ruff/pull/8066/ --- docs/tutorial.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index 14ed8fe398..0c1573c3fa 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -22,7 +22,7 @@ import os def sum_even_numbers(numbers: Iterable[int]) -> int: - """Given a sequence of integers, return the sum of all even numbers in the sequence.""" + """Given an iterable of integers, return the sum of all even numbers in the iterable.""" return sum(num for num in numbers if num % 2 == 0) ``` @@ -61,7 +61,7 @@ Running `git diff` shows the following: - def sum_even_numbers(numbers: Iterable[int]) -> int: - """Given a sequence of integers, return the sum of all even numbers in the sequence.""" + """Given an iterable of integers, return the sum of all even numbers in the iterable.""" return sum(num for num in numbers if num % 2 == 0) ``` @@ -184,7 +184,7 @@ from typing import Iterable # noqa: UP035 def sum_even_numbers(numbers: Iterable[int]) -> int: - """Given a sequence of integers, return the sum of all even numbers in the sequence.""" + """Given an iterable of integers, return the sum of all even numbers in the iterable.""" return sum(num for num in numbers if num % 2 == 0) ``` @@ -206,7 +206,7 @@ from typing import Iterable def sum_even_numbers(numbers: Iterable[int]) -> int: - """Given a sequence of integers, return the sum of all even numbers in the sequence.""" + """Given an iterable of integers, return the sum of all even numbers in the iterable.""" return sum(num for num in numbers if num % 2 == 0) ```