Skip to content

chore: release 4.0.1 - #271

Merged
amix merged 4 commits into
release/4.0.xfrom
amix/release-4.0.1
Nov 3, 2026
Merged

amix merged 4 commits into
release/4.0.xfrom
amix/release-4.0.1

Conversation

@amix

@amix amix commented Nov 3, 2026

Copy link
Copy Markdown
Member

Context

  • Todoist projects can now have the table view style. With 4.0.0, get_projects() fails with ParseError once a user has a Table project.
  • Main also holds unreleased breaking changes (the httpx2 migration, label order), so this patch is cut from the v4.0.0 tag, on a new release/4.0.x branch.

What was changed

Refs

  • After this merges: tag v4.0.1 on release/4.0.x to publish to PyPI.

🤖 Generated with Claude Code

amix and others added 4 commits November 3, 2026 06:22
`Project.view_style` was typed as the `ViewStyle` literal, so any value the
SDK didn't list (e.g. the upcoming `table` layout) raised `ParseError` and
failed the whole load. Read it as `str` and keep the value as sent. The
`ViewStyle` names and request-side validation are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@amix
amix requested a review from a team as a code owner November 3, 2026 05:24
@amix
amix requested review from kumarnmanoj and removed request for a team November 3, 2026 05:24

@doistbot doistbot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR cuts the 4.0.1 patch release from the v4.0.0 tag: it cherry-picks the fixes for loading projects with unknown view styles and adds table support to add_project/update_project, bumps the version, and updates the changelog.

Few things worth tightening:

  • The 4.0.0 changelog section duplicates the same view-style entries and incorrectly documents 4.0.0 as shipping changes it didn't contain (it's precisely the release that failed on Table projects) — remove those lines so 4.0.0 only reflects what actually shipped.

I also left one optional follow-up note in the details below.

Optional follow-up note (1)
  • P3 todoist_api_python/models.py:12: models.ViewStyle now has no users: this PR changed Project.view_style to str, and nothing imports this alias. Keeping it means the allowed view styles are maintained in two places (types.ViewStyle is the live one), so they can drift again. Remove this alias, or consolidate the allowed values into one shared source.

Share Feedback • Review Logs

Comment thread CHANGELOG.md Resolved
@amix
amix merged commit a72a7ae into release/4.0.x Nov 3, 2026
6 checks passed
@amix
amix deleted the amix/release-4.0.1 branch November 3, 2026 05:46
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.

2 participants