Skip to content

Switch to Micropython-incompatible syntax#3186

Merged
freakboy3742 merged 3 commits into
beeware:mainfrom
HalfWhitt:micropython-incompatible-syntax
Feb 12, 2025
Merged

Switch to Micropython-incompatible syntax#3186
freakboy3742 merged 3 commits into
beeware:mainfrom
HalfWhitt:micropython-incompatible-syntax

Conversation

@HalfWhitt

Copy link
Copy Markdown
Member

In #3086 and #3151, I found once I submitted to CI that I was running up against limitations of MicroPython's syntax in style_mixin() and BaseStyle.keys(), respectively. There's nothing wrong with what I ended up using instead... but I think my first drafts read better, and we're no longer bound by MicroPython.

While I was making stylistic cleanups, I also simplified a couple of lines in validated_property.__get__().

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@HalfWhitt HalfWhitt changed the title Micropython incompatible syntax Switch to Micropython-incompatible syntax Feb 11, 2025
@HalfWhitt

Copy link
Copy Markdown
Member Author

(The MicroPython test is still there and failing, but #3184 will fix that.)

@freakboy3742 freakboy3742 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm going to be a radical and merge this even though CI ISN'T PASSING (/me swoons)!!! 🤣

@freakboy3742 freakboy3742 merged commit a60aa53 into beeware:main Feb 12, 2025
@HalfWhitt

Copy link
Copy Markdown
Member Author

Madness!

@HalfWhitt HalfWhitt deleted the micropython-incompatible-syntax branch February 18, 2025 00:17
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