Only issue pygments warning when annotations are used