Remove some 3.6ish type annotations

This commit is contained in:
rocky
2022-03-04 05:12:44 -05:00
parent 209f19c1da
commit f89a3e8fa1
4 changed files with 5 additions and 5 deletions

View File

@@ -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={},

View File

@@ -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:

View File

@@ -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

View File

@@ -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