Debian Codegraph @

mypy.ini

raw symbols SCIP
1 [mypy]
2 scripts_are_modules = True
3 show_traceback = True
4 plugins = pydantic.mypy
5
6 # Options to make the checking stricter.
7 check_untyped_defs = True
8 disallow_any_unimported = True
9 disallow_untyped_defs = True
10 disallow_any_generics = True
11 warn_no_return = True
12 no_implicit_optional = True
13 warn_return_any = True
14 disallow_untyped_calls = True
15 disallow_incomplete_defs = True
16 warn_redundant_casts = True
17
18 # Display the codes needed for # type: ignore[code] annotations.
19 show_error_codes = True
20
21 # It's useful to try this occasionally, and keep it clean; but when
22 # someone fixes a type error we don't want to add a burden for them.
23 warn_unused_ignores = True
24
25 # We use a lot of third-party libraries we don't have stubs for, as
26 # well as a handful of our own modules that we haven't told mypy how
27 # to find. Ignore them. (For some details, see:
28 # `git log -p -S ignore_missing_imports mypy.ini`.)
29 #
30 # This doesn't get in the way of using the stubs we *do* have.
31 ignore_missing_imports = True
32
33 # Warn of unreachable or redundant code.
34 warn_unreachable = False
35 # was True
36
37 strict_optional = True
38