sync from Atlas

This commit is contained in:
Luciano Ramalho committed 2021-08-25 14:46:57 -03:00
1 parent b429f217d3
commit dd535abcf7
16 files changed
+51 -62

No files matched your search

+1 -1
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[]