Skip to content

TYP: annotate plotting based on _get_axe_freq #35960

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

Merged

Conversation

jbrockmendel
Copy link
Member

In some places in plotting ax is an Axes object and in other its an Axis object. Current goal is to pin these down.

in timeseries._get_ax_freq we call ax.get_shared_x_axes(), which is an Axes method that does not exist on Axis. This annotates that usage and annotates all the other places where we can infer Axes from that.

jbrockmendel and others added 21 commits August 20, 2020 21:19
Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

Thanks @jbrockmendel lgtm pending green

@simonjayhawkins simonjayhawkins added the Typing type annotations, mypy/pyright type checking label Aug 28, 2020
@simonjayhawkins simonjayhawkins added this to the 1.2 milestone Aug 28, 2020
@simonjayhawkins simonjayhawkins merged commit 5368397 into pandas-dev:master Aug 30, 2020
@simonjayhawkins
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the annotate-plotting-get_freq branch August 30, 2020 15:06
AlexKirko pushed a commit to AlexKirko/pandas that referenced this pull request Aug 31, 2020
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants