Skip to content
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

[MNT] fix type annotations of fignum_exists #27376

Merged
merged 3 commits into from Nov 27, 2023

Conversation

sdiebolt
Copy link
Contributor

@sdiebolt sdiebolt commented Nov 27, 2023

PR summary

This PR fixes the type annotation of the num argument from matplotlib.pyplot.fignum_exists (going from int to int | str). It also expands a bit the documentation to clarify parameters and return types.

PR checklist

Copy link
Member

@rcomer rcomer left a comment

Choose a reason for hiding this comment

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

Thanks for catching this @sdiebolt!

lib/matplotlib/pyplot.py Outdated Show resolved Hide resolved
lib/matplotlib/pyplot.py Outdated Show resolved Hide resolved
Co-authored-by: Ruth Comer <10599679+rcomer@users.noreply.github.com>
@oscargus oscargus added this to the v3.8.3 milestone Nov 27, 2023
@oscargus oscargus merged commit e2c9cd4 into matplotlib:main Nov 27, 2023
39 of 40 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Nov 27, 2023
@oscargus
Copy link
Contributor

Thanks @sdiebolt and congratulation to your first merged Matplotlib contribution! Hope to see you around!

@oscargus oscargus added topic: typing Documentation: API files in lib/ and doc/api labels Nov 27, 2023
rcomer added a commit that referenced this pull request Nov 27, 2023
…376-on-v3.8.x

Backport PR #27376 on branch v3.8.x ([MNT] fix type annotations of `fignum_exists`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation: API files in lib/ and doc/api topic: typing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MNT]: Type annotations for fignum_exists should allow strings
3 participants