mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2026-01-09 05:12:30 -06:00
🐛 Removed deprecation decorator because of unavailability in Python 3.12
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user