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

Updated to support type hints #28

Merged
merged 2 commits into from
May 8, 2024
Merged

Updated to support type hints #28

merged 2 commits into from
May 8, 2024

Conversation

audunth
Copy link
Contributor

@audunth audunth commented May 7, 2024

This fixes type hints I got in two instances:

  1. README updated so we use the import sequence reccomended by matplotlib: https://matplotlib.org/stable/users/explain/customizing.html#distributing-styles

  2. Importing Axes and Figure lets pyright understand the type of figure_multiple_rows_columns and provide correct hints.
    See [Bug]: Type checkers not finding Axes, Figure in matplotlib.pyplot matplotlib/matplotlib#26812 for discussion.

@audunth audunth requested a review from engeir May 7, 2024 09:05
cosmoplots/axes.py Outdated Show resolved Hide resolved
@audunth audunth merged commit 4a4c381 into main May 8, 2024
10 checks passed
@audunth audunth deleted the multiple_figures_hint branch May 8, 2024 06:44
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