Skip to content

Commit 3db2a08

Browse files
committed
Use bold in notes as well
1 parent 15accee commit 3db2a08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@ def colorize(self, error: str) -> str:
639639
self.highlight_quote_groups(msg) + self.style(code, 'yellow'))
640640
elif ': note:' in error:
641641
loc, msg = error.split('note:', maxsplit=1)
642-
return loc + self.style('note:', 'blue') + self.underline_link(msg)
642+
formatted = self.highlight_quote_groups(self.underline_link(msg))
643+
return loc + self.style('note:', 'blue') + formatted
643644
elif error.startswith(' ' * DEFAULT_SOURCE_OFFSET):
644645
# TODO: detecting source code highlights through an indent can be surprising.
645646
if '^' not in error:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy