Remove type annotations

This commit is contained in:
rocky
2022-09-30 02:50:53 -04:00
parent 28bd433c9a
commit 68c646f1bb
3 changed files with 3 additions and 7 deletions

View File

@@ -5,9 +5,7 @@
def and_invalid(
self, lhs: str, n: int, rule, ast, tokens: list, first: int, last: int
) -> bool:
def and_invalid( self, lhs, n, rule, ast, tokens, first, last):
jmp = ast[1]
if jmp.kind.startswith("jmp_"):
if last == n:

View File

@@ -3,7 +3,7 @@
from uncompyle6.scanners.tok import Token
def for_block_invalid(self, lhs, n, rule, tree, tokens, first: int, last: int) -> bool:
def for_block_invalid(self, lhs, n, rule, tree, tokens, first, last):
# print("XXX", first, last)
# for t in range(first, last):

View File

@@ -13,9 +13,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
def joined_str_invalid(
self, lhs: str, n: int, rule, tree, tokens: list, first: int, last: int
) -> bool:
def joined_str_invalid(self, lhs, n, rule, tree, tokens, first, last):
# In Python 3.8, there is a new "=" specifier.
# See https://docs.python.org/3/whatsnew/3.8.html#f-strings-support-for-self-documenting-expressions-and-debugging
# We detect this here inside joined_str by looking for an