Commit
c8a6486626c8af2db5dd899c7cd1b46623ceb998
by thomaspTell 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
|
 | lnt/testing/profile/perf.py |
Commit
38072912f259d031db8d59b407db8b1373974e38
by thomaspFix return type in baseline()'s type hint
Reviewed By: danilaml
Differential Revision: https://reviews.llvm.org/D95066
|
 | lnt/server/ui/views.py |
Commit
001ac8fa222a92e43f95d7fa45ba083dbbff423e
by thomaspHelp mypy with typing
Give the type to _files and _queue which mypy is confused about.
Reviewed By: danilaml
Differential Revision: https://reviews.llvm.org/D95068
|
 | lnt/util/wsgi_restart.py |
Commit
1a7257d91049da83bca99684040720b80e2ad02e
by thomaspFix type hint for add_column in lnt.server.db.util
statement variable in lnt.server.db.util's add_column method is of type DDLElement. As per [1], the bind argument of its execute() method is optional and take "an Engine or Connection". This commit updates add_column's type hint accordingly.
[1] https://docs.sqlalchemy.org/en/13/core/ddl.html#sqlalchemy.schema.DDLElement.execute
Reviewed By: danilaml
Differential Revision: https://reviews.llvm.org/D95064
|
 | lnt/server/db/util.py |
Commit
4d2d4dc9318999414e196df6ceca0af62d31c323
by thomaspFix mypy warning about short_help using __doc__
Several click.command use __doc__ for the short_help but mypy is getting confused because its type is a union between str and unicode due to changes between Python2 and Python3. This commit clarifies to Mypy that it is a string by calling str on __doc__.
Reviewed By: danilaml
Differential Revision: https://reviews.llvm.org/D95067
|
 | lnt/tests/compile.py |
 | lnt/tests/nt.py |
 | lnt/tests/test_suite.py |
Commit
f48d431f44610e339d00a33d57564c6029c4ff43
by thomaspInstall future before running sphinx
Fix Sphinx warning about lack of module named 'future' by making the installation of future a dependency of sphinx in tox.ini
Reviewed By: danilaml
Differential Revision: https://reviews.llvm.org/D95069
|
 | tox.ini |