mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 22:23:22 +00:00
fix documentation string in python API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d1342ba7a9
commit
b456be1151
1 changed files with 3 additions and 3 deletions
|
@ -635,7 +635,7 @@ class FuncDeclRef(AstRef):
|
||||||
args = _get_args(args)
|
args = _get_args(args)
|
||||||
num = len(args)
|
num = len(args)
|
||||||
if __debug__:
|
if __debug__:
|
||||||
_z3_assert(num == self.arity(), "Incorrect number of arguments")
|
_z3_assert(num == self.arity(), "Incorrect number of arguments to %s" % self)
|
||||||
_args = (Ast * num)()
|
_args = (Ast * num)()
|
||||||
saved = []
|
saved = []
|
||||||
for i in range(num):
|
for i in range(num):
|
||||||
|
@ -1735,7 +1735,7 @@ class ArithSortRef(SortRef):
|
||||||
"""Real and Integer sorts."""
|
"""Real and Integer sorts."""
|
||||||
|
|
||||||
def is_real(self):
|
def is_real(self):
|
||||||
"""Return `True` if `self` is the integer sort.
|
"""Return `True` if `self` is of the sort Real.
|
||||||
|
|
||||||
>>> x = Real('x')
|
>>> x = Real('x')
|
||||||
>>> x.is_real()
|
>>> x.is_real()
|
||||||
|
@ -1749,7 +1749,7 @@ class ArithSortRef(SortRef):
|
||||||
return self.kind() == Z3_REAL_SORT
|
return self.kind() == Z3_REAL_SORT
|
||||||
|
|
||||||
def is_int(self):
|
def is_int(self):
|
||||||
"""Return `True` if `self` is the real sort.
|
"""Return `True` if `self` is of the sort Integer.
|
||||||
|
|
||||||
>>> x = Int('x')
|
>>> x = Int('x')
|
||||||
>>> x.is_int()
|
>>> x.is_int()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue