bugdown: Add type: ignore for fenced_code import.

This is a workaround to allow us to type-check files that depend on
this.  Ideally in the future we'll fix the type errors in
fenced_code.py.
This commit is contained in:
Tim Abbott 2016-04-28 12:49:47 -07:00
parent 7a81524c97
commit 755695d3c0
2 changed files with 2 additions and 5 deletions

View File

@ -21,14 +21,10 @@ tools/deprecated/
tools/lister.py
zproject/
zerver/lib/actions.py
zerver/lib/bugdown/__init__.py
zerver/lib/bugdown/fenced_code.py
zerver/lib/statistics.py
zerver/migrations/
zerver/models.py
zerver/tests/
zerver/views/__init__.py
zerver/views/messages.py
zilencer/models.py
""".split()

View File

@ -27,7 +27,8 @@ from django.core import mail
from django.conf import settings
from zerver.lib.avatar import gravatar_hash
from zerver.lib.bugdown import codehilite, fenced_code
from zerver.lib.bugdown import codehilite
from zerver.lib.bugdown import fenced_code # type: ignore # excluding fenced_code from checks
from zerver.lib.bugdown.fenced_code import FENCE_RE
from zerver.lib.camo import get_camo_url
from zerver.lib.timeout import timeout, TimeoutExpired