Skip to content

Conversation

@gwrome
Copy link
Contributor

@gwrome gwrome commented Apr 7, 2019

_klasses = [LinePlot, BarPlot, BarhPlot, KdePlot, HistPlot, BoxPlot,
ScatterPlot, HexBinPlot, AreaPlot, PiePlot]
ScatterPlot, HexBinPlot, AreaPlot, PiePlot] \
# type: List[Type[MPLPlot]]
Copy link
Member

Choose a reason for hiding this comment

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

Should just be List[MPLPlot] I think - does that give you some kind of error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, _klasses contains the classes/types themselves, not instances of those types, so using List[MPLPlot] errors out with lines like error: List item 0 has incompatible type "Type[LinePlot]"; expected "MPLPlot".

@WillAyd WillAyd added the Typing type annotations, mypy/pyright type checking label Apr 7, 2019
@codecov
Copy link

codecov bot commented Apr 7, 2019

Codecov Report

Merging #26021 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26021      +/-   ##
==========================================
- Coverage   91.82%   91.82%   -0.01%     
==========================================
  Files         175      175              
  Lines       52539    52540       +1     
==========================================
- Hits        48246    48243       -3     
- Misses       4293     4297       +4
Flag Coverage Δ
#multiple 90.38% <100%> (ø) ⬆️
#single 40.73% <100%> (-0.14%) ⬇️
Impacted Files Coverage Δ
pandas/plotting/_core.py 83.86% <100%> (+0.01%) ⬆️
pandas/io/gbq.py 75% <0%> (-12.5%) ⬇️
pandas/core/frame.py 96.79% <0%> (-0.12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6de8133...b92dee9. Read the comment docs.

@jreback jreback added this to the 0.25.0 milestone Apr 7, 2019
@jreback
Copy link
Contributor

jreback commented Apr 7, 2019

lgtm. @WillAyd

mypy.ini Outdated
[mypy-pandas.tseries.offsets]
=======
[mypy-pandas.plotting._core]
>>>>>>> origin/master
Copy link
Member

Choose a reason for hiding this comment

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

Merge conflict vestiges?

Copy link
Contributor Author

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.

@WillAyd WillAyd merged commit 0610a60 into pandas-dev:master Apr 8, 2019
@WillAyd
Copy link
Member

WillAyd commented Apr 8, 2019

Thanks @gwrome keep them coming!

@gwrome gwrome deleted the blacklist-plotting branch April 8, 2019 17:21
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