Skip to content

Commit

Permalink
bugdown: Add type: ignore for fenced_code import.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
timabbott committed Apr 28, 2016
1 parent 7a81524 commit 755695d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions tools/run-mypy
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
3 changes: 2 additions & 1 deletion zerver/lib/bugdown/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
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
Expand Down

0 comments on commit 755695d

Please sign in to comment.