Skip to content

use string instead of import for framebufferio #49

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

Merged
merged 1 commit into from
May 30, 2025

Conversation

FoamyGuy
Copy link
Contributor

@FoamyGuy FoamyGuy commented May 30, 2025

framebufferio does not exist in Blinka_Displayio, so this was causing an import error when attempting to use it for a type annotation.

I've updated the alias to use a string instead of the imported module for the type, in an environment were circuitpython-stubs is installed I think it might see the one from that in some IDEs still.

If framebufferio ever gets implemented in Blinka Displayio we could swap this back to importing.

This will resolve the actions failure from here: https://github.com/adafruit/Adafruit_CircuitPython_CursorControl/actions/runs/15351252647/job/43199774642?pr=41#step:2:1093

I tested the changed code successfully by building the docs for that PR branch locally with these changes.

@FoamyGuy FoamyGuy requested a review from a team May 30, 2025 17:03
@dhalbert dhalbert merged commit ab6bad8 into adafruit:main May 30, 2025
1 check passed
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