Skip to content

Commit c8a6486

Browse files
author
Thomas Preud'homme
committed
Tell mypy to ignore import of cython module
Mypy complains following the import of cPerf because it cannot find the module. This is because it is a cython module which mypy cannot inspect. This commit tells mypy to ignore that import. Reviewed By: danilaml Differential Revision: https://reviews.llvm.org/D95065
1 parent 9471239 commit c8a6486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lnt/testing/profile/perf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import traceback
88

99
try:
10-
from . import cPerf
10+
from . import cPerf # type: ignore # mypy cannot process Cython modules
1111
except Exception:
1212
pass
1313

0 commit comments

Comments
 (0)