Skip to content

Conversation

@ThakeeNathees
Copy link
Collaborator

Adds a test ensuring free python code outside with entry reports a parser error. Also includes parser change that logs this specific message.

parser: report error when free code appears outside entry
Copy link
Contributor

@marsninja marsninja left a comment

Choose a reason for hiding this comment

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

This is great, but can we add a test that we dont get teh error if we're in a context where you can use a context manager but dont need a with entry block.

@ThakeeNathees ThakeeNathees force-pushed the fix/parser-free-code-error-test branch 2 times, most recently from 8612092 to eff7ab5 Compare December 3, 2025 15:15
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.

Missing with entry should have smarter error

3 participants