Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reblacken code after #8360 #8609

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions cvat-sdk/cvat_sdk/core/downloading.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,15 @@ def download_file(
except ValueError:
file_size = None

with atomic_writer(output_path, "wb") as fd, pbar.task(
total=file_size, desc="Downloading", unit_scale=True, unit="B", unit_divisor=1024
with (
atomic_writer(output_path, "wb") as fd,
pbar.task(
total=file_size,
desc="Downloading",
unit_scale=True,
unit="B",
unit_divisor=1024,
),
):
while True:
chunk = response.read(amt=CHUNK_SIZE, decode_content=False)
Expand Down
7 changes: 4 additions & 3 deletions tests/python/shared/fixtures/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,10 @@ def dump_db():

def create_compose_files(container_name_files):
for filename in container_name_files:
with open(filename.with_name(filename.name.replace(".tests", "")), "r") as dcf, open(
filename, "w"
) as ndcf:
with (
open(filename.with_name(filename.name.replace(".tests", "")), "r") as dcf,
open(filename, "w") as ndcf,
):
dc_config = yaml.safe_load(dcf)

for service_name, service_config in dc_config["services"].items():
Expand Down
Loading