Skip to content

Conversation

@BobTheBuidler
Copy link
Owner

Address the maintainer note by introducing an is_environment flag on ClassIR and using it to decide when to emit UnboundLocalError for missing env locals. Environment classes set this flag, and generator classes set it when env+generator are merged.

Tests: PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 pytest -o addopts= mypyc/test/test_run.py -k "GeneratorWithUndefinedLocalInEnvironment or VariableWithSameNameAsHelperMethod"

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