Skip to content

TYP: annotate plotting._matplotlib.converter #35978

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

No description provided.

jbrockmendel and others added 23 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

@@ -473,7 +473,7 @@ def _get_default_annual_spacing(nyears) -> Tuple[int, int]:
return (min_spacing, maj_spacing)


def period_break(dates, period):
def period_break(dates: PeriodIndex, period: str) -> np.ndarray:
Copy link
Member

Choose a reason for hiding this comment

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

the docsting says that dates is "dates : PeriodIndex" and goes on to say "Array of intervals to monitor." could a PeriodArray be passed?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is only ever called with PeriodIndex. I guess passing PeriodArray wouldnt break the world.

Copy link
Member

Choose a reason for hiding this comment

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

while period_range returns a PeriodIndex there doesn't look like anything to gain by adding PeriodArray atm

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

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the annotate-plotting-converter 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