Make mypy as strict as practical #13

Merged
alexander merged 32 commits from stricter-mypy into develop 2026-12-01 14:26:52 +01:00
Owner
  • Set all "strict" options explicitly, plus "disallow_any_unimported",
    "warn_unreachable", and seven opt-in error codes
  • Turn the ORM Base into a real class and type all relationships
  • Replace the __future__ imports with quoted annotations where needed
  • Use t.Self for methods returning their own class
  • Type-check noxfile.py and scripts/ as well
- Set all "strict" options explicitly, plus "disallow_any_unimported", "warn_unreachable", and seven opt-in error codes - Turn the ORM `Base` into a real class and type all relationships - Replace the `__future__` imports with quoted annotations where needed - Use `t.Self` for methods returning their own class - Type-check `noxfile.py` and `scripts/` as well
Also, remove the unused `orm_exc` import alias
... with quoted annotations where needed
Also, move the `db` import to the top
Also, move the `db` import to the top, which makes some quotes unnecessary
Also, remove the dead `isinstance()` check in `Location.relate_to()`
Type the time series of OrderHistory as pd.Series[int]
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m55s
081d6f7fd9
alexander merged commit c74a7b81f1 into develop 2026-12-01 14:26:52 +01:00
alexander deleted branch stricter-mypy 2026-12-01 14:26:52 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
alexander/velofy!13
No description provided.