[mypy] # Strict mode tuned for this codebase. We use ML / OCR libraries that ship # without type stubs, so we silence those imports while keeping strictness # on our own code. python_version = 3.12 # Our code: strict disallow_untyped_defs = False disallow_incomplete_defs = True check_untyped_defs = True warn_redundant_casts = True warn_unused_ignores = True warn_return_any = True no_implicit_optional = True strict_equality = True # Library noise — these don't ship stubs and we use them at module level [mypy-torch.*] ignore_missing_imports = True [mypy-transformers.*] ignore_missing_imports = True [mypy-fitz.*] ignore_missing_imports = True [mypy-pytesseract.*] ignore_missing_imports = True [mypy-PIL.*] ignore_missing_imports = True [mypy-cv2.*] ignore_missing_imports = True [mypy-numpy.*] ignore_missing_imports = True [mypy-openpyxl.*] ignore_missing_imports = True [mypy-streamlit.*] ignore_missing_imports = True [mypy-pptx.*] ignore_missing_imports = True [mypy-pdf2image.*] ignore_missing_imports = True