-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypy.ini
39 lines (30 loc) · 780 Bytes
/
mypy.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[mypy]
ignore_missing_imports = True
# Disallow dynamic typing
disallow_any_unimported = False
disallow_any_generics = True
disallow_subclassing_any = False
# Disallow untyped definitions and calls
disallow_untyped_defs = True
disallow_incomplete_defs = True
# None and optional handling
no_implicit_optional = True
# Configuring warnings
warn_unused_ignores = True
warn_return_any = True
warn_redundant_casts = True
# Misc things
strict_equality = True
# Config file
warn_unused_configs = True
[mypy-tests.*]
ignore_errors = True
# ignore return type for routers
[mypy-app.routers.*]
disallow_incomplete_defs = False
disallow_untyped_defs = False
[pydantic-mypy]
init_forbid_extra = True
init_typed = True
warn_required_dynamic_aliases = True
warn_untyped_fields = True