from __future__ import annotations (#2464)
* from __future__ import annotations
* fixup! from __future__ import annotations
* fixup! from __future__ import annotations
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@@ -7,10 +7,10 @@ python3 -m doctest -v simple_binary_search.py
|
||||
For manual testing run:
|
||||
python3 simple_binary_search.py
|
||||
"""
|
||||
from typing import List
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
def binary_search(a_list: List[int], item: int) -> bool:
|
||||
def binary_search(a_list: list[int], item: int) -> bool:
|
||||
"""
|
||||
>>> test_list = [0, 1, 2, 8, 13, 17, 19, 32, 42]
|
||||
>>> print(binary_search(test_list, 3))
|
||||
|
||||
Reference in New Issue
Block a user