Comment 1 for bug 1695918

Revision history for this message
Joshua Powers (powersj) wrote :

The NOQA comment does not appear to work across pyflakes and flake8. A better solution is to assert the import right after to avoid needing to make exceptions for both linters & checkers.

My suggestion:

try:
    import jsonschema
    assert jsonschema
    _missing_jsonschema_dep = False