sync from Atlas

This commit is contained in:
Luciano Ramalho
2021-08-25 14:46:57 -03:00
parent b429f217d3
commit dd535abcf7
16 changed files with 51 additions and 62 deletions

View File

@@ -3,7 +3,7 @@ from typing import cast
def find_first_str(a: list[object]) -> str:
index = next(i for i, x in enumerate(a) if isinstance(x, str))
# We only get here if there's at least one string in a
# We only get here if there's at least one string
return cast(str, a[index])
# end::CAST[]