From 0bad5a93897dd2f61b88865689dd8e05676630d9 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 24 Jul 2026 15:38:57 +0500 Subject: [PATCH] ty: add ignores --- nix/build-all.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nix/build-all.py b/nix/build-all.py index 7dba287a48..9b39e5c45e 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -121,7 +121,7 @@ import tarfile import threading from datetime import datetime -ssl._create_default_https_context = ssl._create_unverified_context +ssl._create_default_https_context = ssl._create_unverified_context # ty:ignore[invalid-assignment] import time from collections.abc import Generator, Sequence @@ -697,7 +697,10 @@ def build_dependency( compr = "xz" else: raise RuntimeError("fix source for new download type") - download_tarfile = tarfile.open(name=download_tarfile_path, mode=f"r:{compr}") + # ty: false positive bug upstream. + download_tarfile = tarfile.open( + name=download_tarfile_path, mode=f"r:{compr}" + ) # ty:ignore[no-matching-overload] # tarfile seriously doesn't have a function to retrieve the root directory more easily extract_dir_name = os.path.commonprefix([x for x in download_tarfile.getnames() if x != "."]) # run([tar, "--exclude=\"*/*\"", "-tf", download_name], cwd=build_dir).strip() no longer works