Skip to content

Commit

Permalink
fix last mypy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gijzelaerr committed Jan 9, 2019
1 parent 4e5beeb commit a447ae2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
build
MANIFEST
.mypy_cache/
.venv2/
dist/
*.pyc
*.pyc
.venv*/
purr.egg-info/
2 changes: 1 addition & 1 deletion Purr/Plugins/local_pychart/bar_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from . import pychart_util
from .pychart_types import *

fill_styles = None
fill_styles = iter([]) # type: ignore

_keys = {
"direction": (StringType, "vertical",
Expand Down
2 changes: 1 addition & 1 deletion Purr/Plugins/local_pychart/line_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from .pychart_types import *

default_width = 1.2
line_style_itr = None
line_style_itr = iter([]) # type: ignore

_keys = {
'data': (AnyType, None, pychart_util.data_desc),
Expand Down
2 changes: 1 addition & 1 deletion Purr/Plugins/local_pychart/pie_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class T(chart_object.T):
"radius": (UnitType, None, "The radius of the pie."),
"line_style": (line_style.T, line_style.default, "The style of the outer edge of each pie slice."),

"fill_styles": (ListType, fill_style.standards.list(),
"fill_styles": (ListType, fill_style.standards.list(), # type: ignore
"""The fill style of each item. The length of the
list should be equal to the length of the data.
"""),
Expand Down
2 changes: 1 addition & 1 deletion Purr/Plugins/local_pychart/rose_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class T(chart_object.T):
"center": (CoordType, None, ""),
"base_radius": (NumberType, None, ""),
"line_style": (line_style.T, line_style.T(color=color.black, width=0.3), ""),
"fill_styles": (list, fill_style.standards.list()[:],
"fill_styles": (list, fill_style.standards.list()[:], # type: ignore
"""The fill style of each item. The length of the
list should be equal to the length of the data.
"""),
Expand Down

0 comments on commit a447ae2

Please sign in to comment.