Fix E30X panics on blank lines with trailing white spaces (#9907)

This commit is contained in:
Hoël Bagard 2024-02-09 23:00:26 +09:00 committed by GitHub
parent b4f2882b72
commit 12a91f4e90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 594 additions and 528 deletions

View file

@ -436,6 +436,15 @@ class Test:
# end
# no error
def test():
pass
# Wrongly indented comment
pass
# end
# E301
class Class(object):
@ -534,6 +543,20 @@ def g():
# end
# E302
class Test:
pass
def method1():
return 1
def method2():
return 22
# end
# E303
def fn():
_ = None
@ -648,6 +671,15 @@ class Test:
# end
# E303
def fn():
pass
pass
# end
# E304
@decorator