Skip to content

Commit f607331

Browse files
type annotations across Python versions
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent bd2c7aa commit f607331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/python/z3/z3.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def append_log(s):
129129
Z3_append_log(s)
130130

131131

132-
def to_symbol(s : int | str, ctx = None):
132+
def to_symbol(s, ctx = None):
133133
"""Convert an integer or string into a Z3 symbol."""
134134
if _is_int(s):
135135
return Z3_mk_int_symbol(_get_ctx(ctx).ref(), s)
@@ -312,7 +312,7 @@ def set_option(*args, **kws):
312312
return set_param(*args, **kws)
313313

314314

315-
def get_param(name : str) -> str:
315+
def get_param(name):
316316
"""Return the value of a Z3 global (or module) parameter
317317
318318
>>> get_param('nlsat.reorder')

0 commit comments

Comments
 (0)