Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.
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
4 changes: 2 additions & 2 deletions gapic/utils/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def nth(iterable: Iterable[T], n: int, default: Optional[T] = None) -> Optional[

Args
iterable (Iterable(T)): An iterable on any type.
n (int): The 'index' of the lement to retrieve.
default (Optional(T)): An optional default elemnt if the iterable has
n (int): The 'index' of the element to retrieve.
default (Optional(T)): An optional default element if the iterable has
fewer than n elements.
"""
return next(itertools.islice(iterable, n, None), default)