Skip to content

Commit

Permalink
assertion messages are optional in assert statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Aug 17, 2021
1 parent ad85b3d commit a51d0df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyVHDLModel/SyntaxModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2931,7 +2931,7 @@ class MixinReportStatement:
_message: Expression
_severity: Expression

def __init__(self, message: Expression, severity: Expression = None):
def __init__(self, message: Expression = None, severity: Expression = None):
self._message = message
self._severity = severity

Expand All @@ -2951,7 +2951,7 @@ class MixinAssertStatement(MixinReportStatement):
"""
_condition: Expression

def __init__(self, condition: Expression, message: Expression, severity: Expression = None):
def __init__(self, condition: Expression, message: Expression = None, severity: Expression = None):
super().__init__(message, severity)

self._condition = condition
Expand All @@ -2977,7 +2977,7 @@ def __init__(self, message: Expression, severity: Expression = None, label: str

@export
class SequentialAssertStatement(SequentialStatement, MixinAssertStatement):
def __init__(self, condition: Expression, message: Expression, severity: Expression = None, label: str = None):
def __init__(self, condition: Expression, message: Expression = None, severity: Expression = None, label: str = None):
super().__init__(label)
MixinAssertStatement.__init__(self, condition, message, severity)

Expand Down

0 comments on commit a51d0df

Please sign in to comment.