Skip to content

Commit

Permalink
Removed unused class variable, module from mypy blacklist (pandas-dev…
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd authored and jreback committed Mar 28, 2019
1 parent 8b9f933 commit 7721f70
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 0 additions & 3 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,6 @@ ignore_errors=True
[mypy-pandas.io.feather_format]
ignore_errors=True

[mypy-pandas.io.formats.css]
ignore_errors=True

[mypy-pandas.io.html]
ignore_errors=True

Expand Down
5 changes: 1 addition & 4 deletions pandas/io/formats/css.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ class CSSResolver(object):
"""

INITIAL_STYLE = {
}

def __call__(self, declarations_str, inherited=None):
""" the given declarations to atomic properties
Expand Down Expand Up @@ -69,7 +66,7 @@ def __call__(self, declarations_str, inherited=None):
if val == 'inherit':
val = inherited.get(prop, 'initial')
if val == 'initial':
val = self.INITIAL_STYLE.get(prop)
val = None

if val is None:
# we do not define a complete initial stylesheet
Expand Down
3 changes: 1 addition & 2 deletions pandas/io/formats/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ class CSSToExcelConverter(object):

def __init__(self, inherited=None):
if inherited is not None:
inherited = self.compute_css(inherited,
self.compute_css.INITIAL_STYLE)
inherited = self.compute_css(inherited)

self.inherited = inherited

Expand Down

0 comments on commit 7721f70

Please sign in to comment.