Skip to content

Add support for # @type var type assertion comments#429

Draft
mame wants to merge 1 commit intomasterfrom
type-var-comment
Draft

Add support for # @type var type assertion comments#429
mame wants to merge 1 commit intomasterfrom
type-var-comment

Conversation

@mame
Copy link
Copy Markdown
Member

@mame mame commented Apr 7, 2026

Support Steep-compatible # @type var name: Type comments that override local variable types at statement boundaries. This enables users to provide type hints where TypeProf's inference is imprecise, such as narrowing variables before dynamic dispatch (e.g., send).

Support Steep-compatible `# @type var name: Type` comments that override
local variable types at statement boundaries. This enables users to
provide type hints where TypeProf's inference is imprecise, such as
narrowing variables before dynamic dispatch (e.g., send).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant