-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
#26020 Fixed type annotations for pandas.plotting._core #26021
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
# pylint: disable=E1101 | ||
from collections import namedtuple | ||
import re | ||
from typing import List, Optional, Type | ||
import warnings | ||
|
||
import numpy as np | ||
|
@@ -78,7 +79,7 @@ def _kind(self): | |
|
||
_layout_type = 'vertical' | ||
_default_rot = 0 | ||
orientation = None | ||
orientation = None # type: Optional[str] | ||
_pop_attributes = ['label', 'style', 'logy', 'logx', 'loglog', | ||
'mark_right', 'stacked'] | ||
_attr_defaults = {'logy': False, 'logx': False, 'loglog': False, | ||
|
@@ -1723,7 +1724,8 @@ def result(self): | |
_all_kinds = _common_kinds + _dataframe_kinds + _series_kinds | ||
|
||
_klasses = [LinePlot, BarPlot, BarhPlot, KdePlot, HistPlot, BoxPlot, | ||
ScatterPlot, HexBinPlot, AreaPlot, PiePlot] | ||
ScatterPlot, HexBinPlot, AreaPlot, PiePlot] \ | ||
# type: List[Type[MPLPlot]] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should just be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, |
||
|
||
_plot_klass = {klass._kind: klass for klass in _klasses} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge conflict vestiges?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. Changed IDEs, forgot to turn on autosave.