3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 09:35:32 +00:00

type annotations across Python versions

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2025-04-04 22:14:32 -07:00
parent bd2c7aa908
commit f607331856

View file

@ -129,7 +129,7 @@ def append_log(s):
Z3_append_log(s)
def to_symbol(s : int | str, ctx = None):
def to_symbol(s, ctx = None):
"""Convert an integer or string into a Z3 symbol."""
if _is_int(s):
return Z3_mk_int_symbol(_get_ctx(ctx).ref(), s)
@ -312,7 +312,7 @@ def set_option(*args, **kws):
return set_param(*args, **kws)
def get_param(name : str) -> str:
def get_param(name):
"""Return the value of a Z3 global (or module) parameter
>>> get_param('nlsat.reorder')