From 4f9e53b674b92e5f8d4347208ed854df40d9d179 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Mon, 25 Nov 2024 19:00:09 +0100 Subject: [PATCH] Add unused-ignore to fix flaky mypy behavior --- conda_lock/virtual_package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda_lock/virtual_package.py b/conda_lock/virtual_package.py index b169a0c8..1c47832e 100644 --- a/conda_lock/virtual_package.py +++ b/conda_lock/virtual_package.py @@ -49,7 +49,7 @@ def to_repodata_entry(self) -> Tuple[str, Dict[str, Any]]: class FakeRepoData(BaseModel): base_path: pathlib.Path packages_by_subdir: DefaultDict[FakePackage, Set[str]] = Field( - default_factory=lambda: defaultdict(set) # type: ignore[arg-type] + default_factory=lambda: defaultdict(set) # type: ignore[arg-type,unused-ignore] ) all_subdirs: Set[str] = { "noarch",