Skip to content

Commit e6021e9

Browse files
committed
Use type annotation to confirm tool:creator parameter requires an object
References: * #3 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
1 parent 4ad2ddb commit e6021e9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

case_mapping/uco/tool.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
from typing import Optional
2+
13
from ..base import ObjectEntity
24

35

46
class Tool(ObjectEntity):
57
def __init__(
6-
self, tool_name=None, tool_version=None, tool_type=None, tool_creator=None
8+
self,
9+
tool_name=None,
10+
tool_version=None,
11+
tool_type=None,
12+
tool_creator: Optional[ObjectEntity] = None,
713
):
814
"""
915
The Uco tool is a way to define the specifics of a tool used in an investigation

0 commit comments

Comments
 (0)