Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 26075c5

Browse files
committed
df: types: Raise error on invalid definition for Input
Signed-off-by: John Andersen <[email protected]>
1 parent 4e91d76 commit 26075c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dffml/df/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ def __init__(
278278
*,
279279
uid: Optional[str] = "",
280280
):
281+
if not isinstance(definition, Definition):
282+
raise TypeError("Input given non definition")
281283
# TODO Add optional parameter Input.target which specifies the operation
282284
# instance name this Input is intended for.
283285
self.validated = validated

0 commit comments

Comments
 (0)