Skip to content

Figure.text: Migrate the fill/pen parameters to the new alias system#4489

Open
seisman wants to merge 4 commits intomainfrom
text/fill-pen
Open

Figure.text: Migrate the fill/pen parameters to the new alias system#4489
seisman wants to merge 4 commits intomainfrom
text/fill-pen

Conversation

@seisman
Copy link
Copy Markdown
Member

@seisman seisman commented Apr 2, 2026

Just regular migration.

@seisman seisman added this to the 0.19.0 milestone Apr 2, 2026
@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog final review call This PR requires final review and approval from a second reviewer labels Apr 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Migrates Figure.text/text_ handling of the GMT -G (fill) and -W (pen) options from the legacy @use_alias mechanism to the newer AliasSystem-based alias handling.

Changes:

  • Removed G="fill" and W="pen" from the @use_alias decorator and introduced explicit fill/pen keyword parameters.
  • Added fill/pen into the AliasSystem construction so they are emitted as -G/-W.
  • Tightened type annotations for angle and font, and added an inline type: ignore for a mixed-type list used in validation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

seisman and others added 2 commits April 2, 2026 22:03
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

final review call This PR requires final review and approval from a second reviewer maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants