Skip to content

Improve staticcall typo hints#712

Draft
augmentcode[bot] wants to merge 1 commit into
mainfrom
michaelos443/staticcall-typo-hints
Draft

Improve staticcall typo hints#712
augmentcode[bot] wants to merge 1 commit into
mainfrom
michaelos443/staticcall-typo-hints

Conversation

@augmentcode
Copy link
Copy Markdown

@augmentcode augmentcode Bot commented May 26, 2026

Summary

  • inspect the source line that triggered a SyntaxException instead of scanning the fully formatted error string
  • recognize adjacent transpositions and small edit-distance misses when suggesting staticcall
  • add focused tests for several additional staticcall typo variants

Validation

  • python -m py_compile vyper/ast/parse.py tests/functional/syntax/exceptions/test_syntax_exception.py
  • ⚠️ python -m pytest tests/functional/syntax/exceptions/test_syntax_exception.py -k staticcall -q (failed: No module named pytest in this environment)

Notes

  • This was launched as a manual session, but only github-app-api was available here instead of github-api, so PR attribution uses the bot tool for creation.

Pull Request opened by Augment Code | View session

@augmentcode
Copy link
Copy Markdown
Author

augmentcode Bot commented May 26, 2026

PR Author Agent

👋 I've got this PR — here's what I'll handle for you:

  • Review feedback — implement suggestions, answer questions, fix what comes up
  • CI failures — I get pinged when checks fail and try to fix them
  • Merge conflicts — bring the PR back up to date when it falls behind
  • Merge gates — watch CI, reviews, and verification
  • Ping you the moment it's ready to merge

Marking it ready and picking reviewers are your call — I'll leave both alone.

Drop a comment anytime!

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