cleanlab--cleanlab
0705ff2d0a
Our package doesn't have type annotations everywhere, so we can't use mypy in strict mode just yet. Still, adding type checking in CI is valuable, so we don't have unchecked annotations in our code. This patch includes basic fixes to make type checking pass, including switching the incorrect `np.array` type annotation for `np.ndarray` and adding some assertions for flow-sensitive typing.
23 行
357 B
INI
23 行
357 B
INI
[mypy]
|
|
|
|
[mypy-sklearn.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-scikeras.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-tensorflow.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-fasttext.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-IPython.display.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-torchvision.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-tqdm.*]
|
|
ignore_missing_imports = True
|