Skip to content

Commit 94630cc

Browse files
committed
Upgrade syntax
1 parent b1df186 commit 94630cc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

alive_progress/core/progress.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
import threading
77
import time
88
from contextlib import contextmanager
9-
from typing import Any, Callable, Collection, Iterable, Optional, TypeVar
9+
from typing import Any, Callable, Optional, TypeVar
10+
from collections.abc import Collection, Iterable
1011

1112
from .calibration import calibrated_fps, custom_fps
1213
from .configuration import config_handler

alive_progress/tools/demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def demo(sleep=None):
6969
for i in range(1, case.count + 1):
7070
time.sleep(sleep or .003)
7171
if manual:
72-
bar((float(i) / (total or case.count)))
72+
bar(float(i) / (total or case.count))
7373
else:
7474
bar()
7575
if case.hooks and i:

0 commit comments

Comments
 (0)