Skip to content

refactor(echo): drop the quotes around the forward reference - #53

Open
rickstaa wants to merge 1 commit into
mainfrom
rs/unquote-annotations
Open

refactor(echo): drop the quotes around the forward reference#53
rickstaa wants to merge 1 commit into
mainfrom
rs/unquote-annotations

Conversation

@rickstaa

@rickstaa rickstaa commented Aug 5, 2026

Copy link
Copy Markdown
Member

echo/runner.py already has from __future__ import annotations, so PEP 563 stores every annotation as a string and never evaluates it. That makes the quotes around the EchoSession forward reference redundant.

The same cleanup applies to the trickle apps still on local branches (narrator, segmentation, sports-tracker); those will land with the PRs that introduce them, since none of the files exist on main yet.

Verified: the module compiles, and state is the only quoted annotation on main.

PEP 563 is already active via `from __future__ import annotations`, so
the annotation is stored as a string and never evaluated. Quoting the
forward reference to EchoSession is redundant.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 5, 2026 12:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR simplifies the echo example app’s type annotations by removing a redundant quoted forward reference now that from __future__ import annotations is enabled in the module.

Changes:

  • Replace state: "EchoSession | None" with state: EchoSession | None in echo/runner.py.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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