Fix type hints and dependency issues for CI

- Add -r requirements.txt to requirements-dev.txt
- Fix mypy errors:
  - Remove slots=True from Settings dataclass
  - Add explicit list[float] type annotations in hedge.py
  - Add type ignore comments for optional QuantLib imports
  - Use Sequence instead of list in GreeksTable for covariance
  - Fix dict type annotation in options.py
  - Add type ignore for nicegui attr-defined errors
- Disable attr-defined error code in mypy config
This commit is contained in:
Bu5hm4nn
2026-03-22 10:36:58 +01:00
parent 874b4a5a02
commit 7dc5b3d734
8 changed files with 28 additions and 24 deletions

View File

@@ -22,7 +22,7 @@ extend-exclude = '''
[tool.mypy]
ignore_missing_imports = true
pythonpath = ["."]
disable_error_code = ["attr-defined"]
[tool.pytest.ini_options]
testpaths = ["tests"]