Skip to content

Commit 83cfc84

Browse files
committed
Add a deprecation warning for PluginRequirement
1 parent 40a3d23 commit 83cfc84

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

volatility3/framework/configuration/requirements.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from typing import Any, ClassVar, Dict, List, Optional, Set, Tuple, Type
1515
from urllib import parse, request
1616

17-
from volatility3.framework import constants, interfaces
17+
from volatility3.framework import constants, interfaces, deprecation
1818

1919
vollog = logging.getLogger(__name__)
2020

@@ -600,6 +600,11 @@ def matches_required(
600600
return True
601601

602602

603+
@deprecation.renamed_class(
604+
deprecated_class_name="PluginRequirement",
605+
removal_date="2026-06-01",
606+
message="PluginRequirement is to be deprecated. Use VersionRequirement instead.",
607+
)
603608
class PluginRequirement(VersionRequirement):
604609
def __init__(
605610
self,

0 commit comments

Comments
 (0)