Skip to content

Commit cd8b804

Browse files
committed
style: order the __main__ demo imports as ruff wants
Stdlib before third party inside the block; the comment stays with the dask imports it explains. Caught by the quality job, not locally.
1 parent 1f1232a commit cd8b804

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/osw/utils/util.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -650,14 +650,14 @@ def wrapped_function(*args, **kwargs):
650650

651651
# testing redirect
652652
if __name__ == "__main__":
653+
from datetime import datetime
654+
from time import sleep
655+
653656
# Only the demo helpers below use dask; see async_parallelize for why it is
654657
# not imported at module scope. Needs the optional `parallel` extra.
655658
import dask
656659
from dask.diagnostics import ProgressBar
657660

658-
from datetime import datetime
659-
from time import sleep
660-
661661
print("Redirecting print messages to a buffer.")
662662
message_buffer = MessageBuffer()
663663
io_buffer = StringIO()

0 commit comments

Comments
 (0)