Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent python snippet enums from being snakified #9777

Merged
merged 1 commit into from
Nov 10, 2023
Merged

Conversation

kimprice
Copy link
Contributor

Fixes https://github.com/microsoft/pxt-minecraft/issues/2438

Thanks to @riknoll for pointing me in the right direction.

I'm removing the emitAsConstant check which was originally added (https://github.com/microsoft/pxt/pull/8983/files) to address this issue https://github.com/microsoft/pxt-minecraft/issues/2170 that is also regarding python snippets.

The snippet is still correct even with the removal of the emitAsConstant check as shown below.
pythonSnippets

@kimprice kimprice requested review from riknoll and a team November 10, 2023 00:41
@kimprice kimprice merged commit 874936d into master Nov 10, 2023
7 checks passed
@kimprice kimprice deleted the kim-pySnippetFix branch November 10, 2023 23:43
kimprice added a commit that referenced this pull request Nov 11, 2023
kimprice added a commit that referenced this pull request Nov 11, 2023
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