Update DocstringFixpoint.ipynb

This commit is contained in:
Peter Norvig 2023-03-07 14:31:08 -08:00 committed by GitHub
parent 3614d30d1e
commit 05772b7d29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@
" \"\"\"The items before the first occurence of `end` (if it shows up).\"\"\"\n",
" return items if (end not in items) else items[:items.index(end)]\n",
"\n",
"def non_negative(numbers): return [x for x in numbers if x >= 0] "
"def non_negative(numbers: list) -> list: return [x for x in numbers if x >= 0] "
]
},
{