2018-03-27 20:30:46 +02:00
|
|
|
[mypy]
|
2023-08-02 21:00:48 +02:00
|
|
|
python_version = 3.10
|
2018-03-27 20:30:46 +02:00
|
|
|
|
|
|
|
disallow_untyped_defs = False
|
|
|
|
# Do not error on imported files since all imported files may not be mypy clean.
|
|
|
|
follow_imports = silent
|
|
|
|
# Do not error if imports are not found.
|
|
|
|
# This can be a problem with standalone scripts and relative imports.
|
|
|
|
# This will limit effectiveness but avoids mypy complaining about running code.
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2020-08-27 20:05:57 +02:00
|
|
|
# Make None compatible with every type (the default prior to v 0.600)
|
|
|
|
strict_optional = False
|
|
|
|
|
2018-10-12 17:34:53 +02:00
|
|
|
[mypy-idl.*]
|
2018-03-27 20:30:46 +02:00
|
|
|
# Error if any code is missing type annotations.
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2018-10-12 17:34:53 +02:00
|
|
|
[mypy-lint.*]
|
2018-03-27 20:30:46 +02:00
|
|
|
# Error if any code is missing type annotations.
|
|
|
|
disallow_untyped_defs = True
|