Skip to content

Add mypy type checking and fix type-safety issues - #30

Merged
jupblb merged 1 commit into
mainfrom
type
Sep 1, 2026
Merged

Add mypy type checking and fix type-safety issues#30
jupblb merged 1 commit into
mainfrom
type

Conversation

@jupblb

@jupblb jupblb commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

- Wire mypy into the flake checks and dev shell; configure it in
  pyproject.toml with check_untyped_defs and scoped ignores for the
  untyped Google/xdg libraries.
- Parse --status into TaskStatus at the CLI boundary so invalid values
  fail with a usage error; GoogleApiService now takes TaskStatus | None.
- Fix Task/TaskList __eq__ signatures (other: object, NotImplemented)
  and document that id/position are deliberately ignored.
- Fix issues surfaced by mypy: guard the optional source map in the
  parser, annotate reconcile op dicts via TaskListOp/TaskOp aliases,
  and annotate fetch_task_lists accumulators.
@jupblb
jupblb merged commit 3aa6220 into main Sep 1, 2026
12 checks passed
@jupblb
jupblb deleted the type branch September 7, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant