Skip to content

fix: resolve meta block type annotations#877

Open
TZZheng wants to merge 1 commit into
Lingtai-AI:mainfrom
TZZheng:fix/issue-752-meta-type-hints-telegrambot
Open

fix: resolve meta block type annotations#877
TZZheng wants to merge 1 commit into
Lingtai-AI:mainfrom
TZZheng:fix/issue-752-meta-type-hints-telegrambot

Conversation

@TZZheng

@TZZheng TZZheng commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • replace the undefined AgentState annotation with object, matching the helper's duck-typed use of agent instances
  • import Any and Dict so the existing postponed annotations can be resolved at runtime
  • add a regression test that resolves type hints for all four affected helpers

Validation

  • .venv/bin/python -m pytest tests/test_meta_block.py -q181 passed
  • git diff --check canonical/main...HEAD — passed
  • independent read-only review — PASS, no blockers

Risk

This is annotation-only production code plus a focused regression test; runtime control flow is unchanged.

Fixes #752

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.

meta_block.py: undefined names Any, Dict, and AgentState in type annotations break typing.get_type_hints()

1 participant