Debian Codegraph @

tools/stubtest/mypy.ini

raw
1 [mypy]
2 files = numpy/**/*.pyi
3 exclude = (?x)(
4 ^numpy/(
5 .+\.py$
6 | _build_utils/
7 | _core/code_generators/
8 | distutils/
9 )
10 )
11 namespace_packages = False
12
13 enable_error_code = ignore-without-code, redundant-expr, truthy-bool
14 warn_unreachable = False
15 strict = True
16 strict_bytes = True
17 allow_redefinition_new = True
18 local_partial_types = True
19
20 ; Stubtest requires mypy to pass before running, which would currently fail
21 ; on numerous stubs. To allow running stubtest independently, we temporarily
22 ; ignore these errors here. The goal is to eventually fix these mypy errors
23 ; and remove the ignores.
24 ; See also https://github.com/numpy/numpy/issues/27032
25 disable_error_code = overload-overlap