meta: ensure caps always a set
When loaded directly from JSON the caps are a list while they're expected to be a set.
This commit is contained in:
parent
adea7d2acd
commit
6b4bb850a7
2 changed files with 3 additions and 3 deletions
|
|
@ -514,7 +514,7 @@ class ModuleInfo:
|
|||
},
|
||||
"desc": meta.get("summary", "no summary provided"),
|
||||
"info": long_description,
|
||||
"caps": meta.get("capabilities", set()),
|
||||
"caps": set(meta.get("capabilities", [])),
|
||||
}
|
||||
return cls(klass, name, path, info)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue