Skip to content

Commit c16ea21

Browse files
committed
adjust for coverage
1 parent 6573caa commit c16ea21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_typer/completers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def _get_time_bounds(self, incomplete: str) -> t.Tuple[time, time]:
337337
:return: A 2-tuple of (lower, upper) time object boundaries.
338338
"""
339339
time_parts = incomplete.split(":")
340-
if len(time_parts) > 0:
340+
if time_parts and time_parts[0]:
341341
hours_low = int(time_parts[0] + "0" * (2 - len(time_parts[0])))
342342
hours_high = min(int(time_parts[0] + "9" * (2 - len(time_parts[0]))), 23)
343343
minutes_low = 0

0 commit comments

Comments
 (0)