mirror of
https://github.com/mandiant/capa.git
synced 2026-07-07 12:57:32 -07:00
vmray: improve comments
This commit is contained in:
@@ -72,7 +72,7 @@ def validate_param_list(value):
|
||||
return [value]
|
||||
|
||||
|
||||
# convert the input value to a Python int type before inner validation is called
|
||||
# convert the input value to a Python int type before inner validation (int) is called
|
||||
HexInt = Annotated[int, BeforeValidator(validate_hex_int)]
|
||||
|
||||
|
||||
@@ -88,9 +88,9 @@ class Param(BaseModel):
|
||||
deref: Optional[ParamDeref] = None
|
||||
|
||||
|
||||
# params may be stored as a list of Param or a single Param so we ensure
|
||||
# the input value to Python list type before the inner validation is called
|
||||
# to make it much easier to parse later
|
||||
# params may be stored as a list of Param or a single Param so we convert
|
||||
# the input value to Python list type before the inner validation (List[Param])
|
||||
# is called
|
||||
ParamList = Annotated[List[Param], BeforeValidator(validate_param_list)]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user