Skip to content

Use std::visit to exhaust std::variant possibilities. - #30773

Merged
QuLogic merged 1 commit into
matplotlib:mainfrom
anntzer:visit
Jul 28, 2026
Merged

Use std::visit to exhaust std::variant possibilities.#30773
QuLogic merged 1 commit into
matplotlib:mainfrom
anntzer:visit

Conversation

@anntzer

@anntzer anntzer commented Nov 21, 2025

Copy link
Copy Markdown
Contributor

This makes it unnecessary to silence impossible "unhandled" cases. See #30607 (comment).

PR summary

PR checklist

@QuLogic QuLogic 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.

IIRC, the reason for the std::get_if with an else instead of a plain std::get was that some old macOS deployment target didn't have the implementation. Since cibuildwheel appears okay with this build, I think this should be okay for us and looks clearer, for the most part.

@QuLogic

QuLogic commented Jul 17, 2026

Copy link
Copy Markdown
Member

Can you rebase again? All the deprecated code paths are gone now.

@QuLogic

QuLogic commented Jul 23, 2026

Copy link
Copy Markdown
Member

I rebased this to fix the conflicts and added a second change of languages in ft2font_wrapper.cpp.

@anntzer

anntzer commented Jul 26, 2026

Copy link
Copy Markdown
Contributor Author

Looks like you forgot to push your rebase?

This makes it unnecessary to silence impossible "unhandled" cases.
@QuLogic

QuLogic commented Jul 27, 2026

Copy link
Copy Markdown
Member

Well, I did, but I forgot that #30291 was merged and didn't rebase on top of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MNT]: Remove macOS 10.12 compatibility from ft2font_wrapper

3 participants