parse_table#
- VSPEC.params.base.parse_table(val, cls)#
Parse some input that could potentially construct a
PSGtableobject.If
valis a dictionary, use it to construct a table. Otherwise, construct an object of typeclsfromval(which is probably a string).- Parameters:
val (any) – The input to parse.
cls (type) – The class to cast
valto if it is not a dictionary.
- Returns:
The parsed input.
- Return type:
any