Skip to content

fix: refuse page tokens that aren't strings #830

Done

Description

@uniqueg

Pre-release review of 0.23.0 for #828: PageKey.after() raises TypeError (500) for tokens that aren't strings (e.g., from JSON bodies); PageKey(("name")) (a string) sorts by its characters and fails on lists with a next page. The docs don't say when find_page() raises ValueError, how items without sort fields sort, or how to accept empty tokens. Refuse both as documented errors and complete the docs.

Activity

  1. added this to the v0.23.0 milestone on Nov 25, 2026
  2. self-assigned this
    on Nov 25, 2026
  3. added
    status: in progress
    type: bug
    workload: hours
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: highstatus: in progresstype: bugworkload: hours

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions