mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
Adding type hints
This commit is contained in:
parent
84636cc08c
commit
1b79142b68
@ -27,7 +27,7 @@ def split_list(
|
|||||||
ValueError: Timings must be a list of numbers
|
ValueError: Timings must be a list of numbers
|
||||||
|
|
||||||
"""
|
"""
|
||||||
valid_timings = []
|
valid_timings = list[ float | int ]
|
||||||
for current_element in enumerate(timings):
|
for current_element in enumerate(timings):
|
||||||
if (
|
if (
|
||||||
isinstance(current_element, str)
|
isinstance(current_element, str)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user