Fix make fix-copies with type annotations (#13586)
This commit is contained in:
@@ -52,7 +52,7 @@ LOCALIZED_READMES = {
|
||||
|
||||
|
||||
def _should_continue(line, indent):
|
||||
return line.startswith(indent) or len(line) <= 1 or re.search(r"^\s*\):\s*$", line) is not None
|
||||
return line.startswith(indent) or len(line) <= 1 or re.search(r"^\s*\)(\s*->.*:|:)\s*$", line) is not None
|
||||
|
||||
|
||||
def find_code_in_transformers(object_name):
|
||||
|
||||
Reference in New Issue
Block a user