spec.py: ensure spec.extra_attributes is {} if is null in json (#48896)

This commit is contained in:
Harmen Stoppels 2025-02-05 17:55:53 +01:00 committed by GitHub
parent 495537cf56
commit 4487598d60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4902,7 +4902,7 @@ def from_node_dict(cls, node):
spec.external_modules = node["external"]["module"]
if spec.external_modules is False:
spec.external_modules = None
spec.extra_attributes = node["external"].get("extra_attributes", {})
spec.extra_attributes = node["external"].get("extra_attributes") or {}
# specs read in are concrete unless marked abstract
if node.get("concrete", True):