File size: 984 Bytes
2682589
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[tool.mypy]
python_version = "3.10"
strict = true

# Vendored third-party code (see file headers for provenance) — not ours to annotate. `exclude`
# only skips these as top-level targets; `ignore_errors` below is what actually silences errors
# reported inside them when first-party code imports them.
exclude = [
    "^postprocess/upscale/srvgg_arch\\.py$",
    "^model/warplayer\\.py$",
    "^model/loss\\.py$",
    "^model/pytorch_msssim/",
]

[[tool.mypy.overrides]]
module = ["postprocess.upscale.srvgg_arch", "model.warplayer", "model.loss", "model.pytorch_msssim.*"]
ignore_errors = true

# Libraries with no inline types or stubs on PyPI.
[[tool.mypy.overrides]]
module = ["diffusers.*", "gradio.*", "spaces.*", "torchao.*", "safetensors.*", "cv2.*", "pyarrow.*"]
ignore_missing_imports = true

# Downloaded at runtime by postprocess/interpolation.py (gitignored, not present at type-check time).
[[tool.mypy.overrides]]
module = "train_log.*"
ignore_missing_imports = true