🐛 Removed deprecation decorator because of unavailability in Python 3.12

This commit is contained in:
Wouter de Bruijn
2025-12-19 09:47:47 +01:00
parent 765b4713a6
commit fdaeb79d4d

View File

@@ -1,7 +1,6 @@
"""A collection of tools used by several classes""" """A collection of tools used by several classes"""
from typing import Any, Callable, Optional, overload from typing import Any, Callable, Optional, overload
from warnings import deprecated
from modules.exceptions import HostgroupError from modules.exceptions import HostgroupError
@@ -118,11 +117,14 @@ def remove_duplicates(
@overload @overload
@deprecated("input_list should be of type list[dict[Any, Any]]")
def remove_duplicates( def remove_duplicates(
input_list: dict[Any, Any], input_list: dict[Any, Any],
sortkey: Optional[str | Callable[[dict[str, Any]], str]] = None, sortkey: Optional[str | Callable[[dict[str, Any]], str]] = None,
): ... ):
"""
deprecated: input_list as dict is deprecated, use list of dicts instead
"""
...
def remove_duplicates( def remove_duplicates(