mirror of
https://github.com/mesonbuild/meson.git
synced 2026-06-24 08:48:03 +00:00
ExternalProgram has as weird way of setting self.command to `list[str | None]`, but it should only be `list[None]` if `self.command = [None]`. Instead, just set self.command to `list[str]`, and use an empty list as the sentinel value. This also fixes a few issues where we use Any or reduce to Any.
80 lines
2.0 KiB
INI
80 lines
2.0 KiB
INI
[mypy]
|
|
strict_optional = False
|
|
show_error_context = False
|
|
show_column_numbers = True
|
|
ignore_missing_imports = False
|
|
implicit_reexport = False
|
|
|
|
follow_imports = silent
|
|
warn_redundant_casts = True
|
|
warn_unused_ignores = True
|
|
warn_return_any = True
|
|
# warn_unreachable = True
|
|
disallow_untyped_calls = True
|
|
disallow_untyped_defs = True
|
|
disallow_incomplete_defs = True
|
|
disallow_untyped_decorators = True
|
|
no_implicit_optional = True
|
|
strict_equality = True
|
|
check_untyped_defs = True
|
|
# disallow_any_expr = True
|
|
# disallow_any_decorated = True
|
|
# disallow_any_explicit = True
|
|
# disallow_any_generics = True
|
|
# disallow_subclassing_any = True
|
|
|
|
# future default behaviors
|
|
allow_redefinition_new = True
|
|
local_partial_types = True
|
|
|
|
[mypy-mesonbuild.cmdline]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.coredata]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.depfile]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.envconfig]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.environment]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.machinefile]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.mcompile]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.mconf]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.mdevenv]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.mdist]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.mesondata]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.mesonmain]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.minit]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.minstall]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.mlog]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.programs]
|
|
strict_optional = True
|
|
|
|
[mypy-mesonbuild.tooldetect]
|
|
strict_optional = True
|