From fdaeb79d4d472456ec56da8ae69b55825dae8505 Mon Sep 17 00:00:00 2001 From: Wouter de Bruijn Date: Fri, 19 Dec 2025 09:47:47 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Removed=20deprecation=20decorato?= =?UTF-8?q?r=20because=20of=20unavailability=20in=20Python=203.12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/tools.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/tools.py b/modules/tools.py index 8ccdb42..da8a073 100644 --- a/modules/tools.py +++ b/modules/tools.py @@ -1,7 +1,6 @@ """A collection of tools used by several classes""" from typing import Any, Callable, Optional, overload -from warnings import deprecated from modules.exceptions import HostgroupError @@ -118,11 +117,14 @@ def remove_duplicates( @overload -@deprecated("input_list should be of type list[dict[Any, Any]]") def remove_duplicates( input_list: dict[Any, Any], sortkey: Optional[str | Callable[[dict[str, Any]], str]] = None, -): ... +): + """ + deprecated: input_list as dict is deprecated, use list of dicts instead + """ + ... def remove_duplicates(