From 3a178836a6a8670add797442689697cbe565ee52 Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 29 Jul 2023 13:00:21 -0400 Subject: [PATCH] Fix a small default-value bug --- uncompyle6/semantics/fragments.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/uncompyle6/semantics/fragments.py b/uncompyle6/semantics/fragments.py index bb245a06..9233d8c7 100644 --- a/uncompyle6/semantics/fragments.py +++ b/uncompyle6/semantics/fragments.py @@ -65,6 +65,7 @@ The node position 0 will be associated with "import". import re import sys +from bisect import bisect_right from collections import namedtuple from typing import Optional @@ -2122,9 +2123,6 @@ def code_deparse( return deparsed -from bisect import bisect_right - - def find_gt(a, x): "Find leftmost value greater than x" i = bisect_right(a, x) @@ -2138,8 +2136,8 @@ def code_deparse_around_offset( offset, co, out=StringIO(), - version=Optional[tuple], - is_pypy=None, + version: Optional[tuple] = None, + is_pypy: bool = False, debug_opts=DEFAULT_DEBUG_OPTS, ): """