Skip to content

Release citry-ui together with runtime input type checks (#208) #209

Closed

Description

@JuroOravec

#208 makes Citry check each component input against its annotation on every render. Published citry-ui 0.3.0 accepts any citry>=0.6.0, and some of its annotations are narrower than the values its components accept. For example, a citry-ui template passes heading_level="2", a string, where the annotation is Literal[2, ..., 6].

#208 turns the check off for every citry-ui component (check_input_types = False). That fixes citry-ui in this repository, but not citry-ui 0.3.0 from PyPI: an app that upgrades Citry and keeps citry-ui 0.3.0 gets type errors from citry-ui's own components.

To do before releasing #208

  • Release a citry-ui version with the opt-out at the same time as the Citry version that adds the check.
  • Decide how to stop a new Citry from being paired with citry-ui 0.3.0. Options:
    • The new citry-ui requires the new Citry (citry>=<next>). This only helps people who upgrade citry-ui too.
    • Citry blocks citry-ui<0.4.0: a citry[ui] extra that requires citry-ui>=0.4.0 (only helps those who install the extra), or a startup check that tells the user to upgrade citry-ui.
    • The release notes for both packages say to upgrade them together. Both changelogs on feat: check component input types at render time #208 already say this.
  • Later: fix citry-ui's annotations so its components can turn the check back on.

Activity

  1. added
    next-sprint
    and removed
    next-sprint
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions