Skip to content

§14.6 example writes Ok(a + b), Result[String, IoError] and "msg-{i}": the spec's own text violates the mission and names a type that does not exist #2959

Closed

Description

@ehartford

Errata #2955 item 2. §14.6's async: example ends in Ok(a + b) (AGENTS.md: you never write Ok(()) or Ok(value)), types the task Task[Result[String, IoError]] (String is not a With type; str is), and interpolates "msg-{i}" without the f prefix. §14.4 line 216 and §14.11 line 521 (Ok(Profile { user, posts })) repeat the pattern. Docs-only once Eric blesses the replacement: the block's value is a + b, the type Task[Result[str, IoError]], the string f"msg-{i}".

Activity

  1. added
    documentation
    on Nov 2, 2026
  2. ehartford commented on Nov 2, 2026

    @ehartford
    ContributorAuthor

    Done in spec v7.35 (#2970): §14.4/§14.6/§14.11 examples write a + b, Result[str, IoError] and f"msg-{i}".

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

    documentationspec

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions