Revert contains_pragma_comment function changes
This commit is contained in:
parent
4ca92ac91c
commit
e268cbaf66
@ -4444,10 +4444,11 @@ def contains_pragma_comment(comment_list: List[Leaf]) -> bool:
|
|||||||
of the more common static analysis tools for python (e.g. mypy, flake8,
|
of the more common static analysis tools for python (e.g. mypy, flake8,
|
||||||
pylint).
|
pylint).
|
||||||
"""
|
"""
|
||||||
return any(
|
for comment in comment_list:
|
||||||
comment.value.startswith(("# type:", "# noqa", "# pylint:"))
|
if comment.value.startswith(("# type:", "# noqa", "# pylint:")):
|
||||||
for comment in comment_list
|
return True
|
||||||
)
|
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
def insert_str_child_factory(string_leaf: Leaf) -> Callable[[LN], None]:
|
def insert_str_child_factory(string_leaf: Leaf) -> Callable[[LN], None]:
|
||||||
|
Loading…
Reference in New Issue
Block a user