X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/3e60f6d454616a795acb1e3e2b43efa979de4f46..5e9244ea0d7541d2fa33277b7d83b58ffc8b3ba0:/black.py?ds=inline diff --git a/black.py b/black.py index 68c0052..1c35643 100644 --- a/black.py +++ b/black.py @@ -1407,7 +1407,10 @@ class Line: for leaf_id, comments in self.comments.items(): for comment in comments: if is_type_comment(comment): - if leaf_id not in ignored_ids or comment_seen: + if comment_seen or ( + not is_type_comment(comment, " ignore") + and leaf_id not in ignored_ids + ): return True comment_seen = True