You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
2.4 tolerance (remove annotations)
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
# Copyright (c) 2020 Rocky Bernstein
|
# Copyright (c) 2020 Rocky Bernstein
|
||||||
|
|
||||||
|
|
||||||
def pop_return_check(
|
def pop_return_check(self, lhs, n, rule, ast, tokens, first, last):
|
||||||
self, lhs: str, n: int, rule, ast, tokens: list, first: int, last: int
|
|
||||||
) -> bool:
|
|
||||||
# If the first instruction of return_expr (the instruction after POP_TOP) is
|
# If the first instruction of return_expr (the instruction after POP_TOP) is
|
||||||
# has a linestart, then the POP_TOP was probably part of the previous
|
# has a linestart, then the POP_TOP was probably part of the previous
|
||||||
# statement, such as a call() where the return value is discarded.
|
# statement, such as a call() where the return value is discarded.
|
||||||
|
Reference in New Issue
Block a user