Thanks to Aurelien Aptel for implementing this feature. I have started using it in flymake to indicate errors. However, I have noticed that it doesn't look as good as that of, for example, the pycharm IDE. Here is a screenshot comparison.