Skip to content

Commit

Permalink
Fix typo in Expression.value property
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagopbueno committed Sep 23, 2018
1 parent ad898ef commit 3a56e8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pyrddl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '0.1.5'
__release__ = 'v0.1.5-alpha'
__version__ = '0.1.6'
__release__ = 'v0.1.6-alpha'
8 changes: 4 additions & 4 deletions pyrddl/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ def name(self) -> str:

@property
def value(self):
'''Returns the value of number expression.
'''Returns the value of a constant expression.
Returns:
Value of number.
Value of constant.
Raises:
ValueError: If not a number expression.
ValueError: If not a constant expression.
'''
if not self.is_number_expression():
if not self.is_constant_expression():
raise ValueError('Expression is not a number.')
return self.args

Expand Down

0 comments on commit 3a56e8c

Please sign in to comment.