Skip to content

Reexport RGBMatrix, RGBMatrixOptions and __version__ - #140

Merged
ty-porter merged 1 commit into
ty-porter:mainfrom
nidico:add-public-api-to-package
Jul 20, 2026
Merged

Reexport RGBMatrix, RGBMatrixOptions and __version__#140
ty-porter merged 1 commit into
ty-porter:mainfrom
nidico:add-public-api-to-package

Conversation

@nidico

@nidico nidico commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Explicitly declare public API to improve static analysis and tooling support.

The README states:

from RGBMatrixEmulator import RGBMatrix, RGBMatrixOptions

So this should be really supported and not only work "by accident".

Note that I didn't include "Color", "Font", "DrawText", "DrawLine", "DrawCircle" from graphics.* as these classes aren't exported in the rgbmatrix package either, so I guess the import statement from RGBMatrixEmulator.graphics import * should rather be removed (for compatibility with rgbmatrix), but this would break backward compatibility.

Explicitly declare public API to improve static analysis and tooling support.
@ty-porter
ty-porter merged commit bfd1009 into ty-porter:main Jul 20, 2026
4 checks passed
@nidico
nidico deleted the add-public-api-to-package branch July 20, 2026 19:05
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