You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Remove some 3.6ish type annotations
This commit is contained in:
@@ -45,7 +45,7 @@ def _get_outstream(outfile):
|
||||
|
||||
def decompile(
|
||||
co,
|
||||
bytecode_version: str = PYTHON_VERSION_TRIPLE,
|
||||
bytecode_version = PYTHON_VERSION_TRIPLE,
|
||||
out=sys.stdout,
|
||||
showasm=None,
|
||||
showast={},
|
||||
@@ -171,7 +171,7 @@ def compile_file(source_path):
|
||||
|
||||
|
||||
def decompile_file(
|
||||
filename: str,
|
||||
filename,
|
||||
outstream=None,
|
||||
showasm=None,
|
||||
showast={},
|
||||
|
@@ -3,7 +3,7 @@
|
||||
|
||||
def and_not_check(
|
||||
self, lhs, n, rule, ast, tokens, first, last
|
||||
) -> bool:
|
||||
):
|
||||
jmp = ast[1]
|
||||
if jmp.kind.startswith("jmp_"):
|
||||
if last == n:
|
||||
|
@@ -2276,7 +2276,7 @@ def deparsed_find(tup, deparsed, code):
|
||||
# def test():
|
||||
# import os, sys
|
||||
|
||||
# def get_dups(li: list) -> set:
|
||||
# def get_dups(li: list):
|
||||
# dups = {}
|
||||
# for item in li:
|
||||
# dups[item] = dups.get(item, -1) + 1
|
||||
|
@@ -1414,7 +1414,7 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
self.write("]")
|
||||
self.prune()
|
||||
|
||||
def get_comprehension_function(self, node, code_index: int):
|
||||
def get_comprehension_function(self, node, code_index):
|
||||
"""
|
||||
Build the body of a comprehension function and then
|
||||
find the comprehension node buried in the tree which may
|
||||
|
Reference in New Issue
Block a user