Skip to content

Commit b1a42d9

Browse files
authored
Merge pull request #1467 from j-t-1/BasicTypes
Use BasicTypes variable
2 parents a07c5d3 + 4c430d2 commit b1a42d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

volatility3/framework/interfaces/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,9 +779,9 @@ def make_subconfig(
779779

780780
# This should check that each k corresponds to a requirement and each v is of the appropriate type
781781
# This would require knowledge of the new configurable itself to verify, and they should do validation in the
782-
# constructor anyway, however, to prevent bad types getting into the config tree we just verify that v is a simple type
782+
# constructor anyway, however, to prevent bad types getting into the config tree we just verify that v is a basic type
783783
for k, v in kwargs.items():
784-
if not isinstance(v, (int, str, bool, float, bytes)):
784+
if not isinstance(v, BasicTypes):
785785
raise TypeError(
786786
"Config values passed to make_subconfig can only be simple types"
787787
)

0 commit comments

Comments
 (0)