From 5290567fe879def3ad001c114bc85f448c7da078 Mon Sep 17 00:00:00 2001 From: Jover Lee Date: Tue, 31 Mar 2026 13:06:27 -0700 Subject: [PATCH] Remove import of `snakemake.io.Wildcards` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `Wildcards` has been moved in Snakemake 9.17.0¹ and again in 9.18.0.² The import was non-functional and for typing purposes only, so just remove the import and not rely on Snakemake internals as discussed in ¹ ² --- snakemake/config.smk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/snakemake/config.smk b/snakemake/config.smk index 208ae5f..76b2b75 100644 --- a/snakemake/config.smk +++ b/snakemake/config.smk @@ -6,7 +6,6 @@ import os import sys import yaml from collections.abc import Callable -from snakemake.io import Wildcards from typing import Optional from textwrap import dedent, indent @@ -54,7 +53,7 @@ class InvalidConfigError(Exception): pass -def resolve_config_path(path: str, defaults_dir: Optional[str] = None) -> Callable[[Wildcards], str]: +def resolve_config_path(path: str, defaults_dir: Optional[str] = None) -> Callable: """ Resolve a relative *path* given in a configuration value. Will always try to resolve *path* after expanding wildcards with Snakemake's `expand` functionality.