-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmypy.ini
39 lines (30 loc) · 1.09 KB
/
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]
# We currently aim for compat with 3.9.
python_version = 3.9
namespace_packages = True
mypy_path = lib/
# Check function bodies which don't have a typed signature. This prevents a
# single untyped function from poisoning other typed functions in a call chain.
check_untyped_defs = True
# Require functions with an annotated return type to be explicit about
# potentially returning None (via Optional[…]).
strict_optional = False
# In the future maybe we can contribute typing stubs for these modules (either
# complete stubs in the python/typeshed repo or partial stubs just in
# this repo), but for now that's more work than we want to invest. These
# sections let us ignore missing stubs for specific modules without hiding all
# missing errors like (--ignore-missing-imports).
[mypy-flask_cors]
ignore_missing_imports = True
[mypy-numpy]
ignore_missing_imports = True
[mypy-pandas]
ignore_missing_imports = True
[mypy-psycopg2.*]
ignore_missing_imports = True
[mypy-cachetools]
ignore_missing_imports = True
[mypy-regex]
ignore_missing_imports = True
[mypy-click]
ignore_missing_imports = True