diff options
Diffstat (limited to 'pyGHDL/dom/Type.py')
-rw-r--r-- | pyGHDL/dom/Type.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/pyGHDL/dom/Type.py b/pyGHDL/dom/Type.py index ba039852c..b0f2d1311 100644 --- a/pyGHDL/dom/Type.py +++ b/pyGHDL/dom/Type.py @@ -128,11 +128,7 @@ class PhysicalType(VHDLModel_PhysicalType, DOMMixin): rng = GetNameFromNode(rangeConstraint) else: pos = Position.parse(typeDefinitionNode) - raise DOMException( - "Unknown range kind '{kind}' in physical type definition at line {line}.".format( - kind=rangeKind.name, line=pos.Line - ) - ) + raise DOMException(f"Unknown range kind '{rangeKind.name}' in physical type definition at line {pos.Line}.") primaryUnit = nodes.Get_Primary_Unit(typeDefinitionNode) primaryUnitName = GetNameOfNode(primaryUnit) @@ -173,9 +169,7 @@ class ArrayType(VHDLModel_ArrayType, DOMMixin): indices.append(indexSubtype) else: raise DOMException( - "Unknown kind '{kind}' for an index in the array definition of `{typeName}`.".format( - kind=indexKind.name, typeName=typeName - ) + f"Unknown kind '{indexKind.name}' for an index in the array definition of `{typeName}`." ) elementSubtypeIndication = nodes.Get_Element_Subtype_Indication(typeDefinitionNode) |