[mypy] follow_imports = silent strict_optional = True warn_redundant_casts = True warn_unused_ignores = True disallow_any_generics = True check_untyped_defs = True no_implicit_reexport = True python_version = 3.10 # for strict mypy: (this is the tricky one :-)) disallow_untyped_defs = True # TODO: when we drop 3.9, drop the following line: force_union_syntax = True [mypy-pydantic_core.*] follow_imports = skip