Fold in some decompile changes

This commit is contained in:
rocky
2022-04-17 12:20:03 -04:00
parent c806ef59c6
commit 3662f3e8c6
2 changed files with 15 additions and 9 deletions

View File

@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
Generators and comprehenison functions
Generators and comprehension functions
"""
@@ -185,7 +185,13 @@ class ComprehensionMixin:
self.preorder(tree[iter_index])
self.prec = p
def comprehension_walk_newer(self, node, iter_index: int, code_index: int = -5):
def comprehension_walk_newer(
self,
node,
iter_index: Optional[int],
code_index: int = -5,
collection_node=None,
):
"""Non-closure-based comprehensions the way they are done in Python3
and some Python 2.7. Note: there are also other set comprehensions.
"""