Skip to content

Commit 7721f70

Browse files
WillAydjreback
authored andcommitted
Removed unused class variable, module from mypy blacklist (pandas-dev#25900)
1 parent 8b9f933 commit 7721f70

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

mypy.ini

-3
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,6 @@ ignore_errors=True
155155
[mypy-pandas.io.feather_format]
156156
ignore_errors=True
157157

158-
[mypy-pandas.io.formats.css]
159-
ignore_errors=True
160-
161158
[mypy-pandas.io.html]
162159
ignore_errors=True
163160

pandas/io/formats/css.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ class CSSResolver(object):
1515
1616
"""
1717

18-
INITIAL_STYLE = {
19-
}
20-
2118
def __call__(self, declarations_str, inherited=None):
2219
""" the given declarations to atomic properties
2320
@@ -69,7 +66,7 @@ def __call__(self, declarations_str, inherited=None):
6966
if val == 'inherit':
7067
val = inherited.get(prop, 'initial')
7168
if val == 'initial':
72-
val = self.INITIAL_STYLE.get(prop)
69+
val = None
7370

7471
if val is None:
7572
# we do not define a complete initial stylesheet

pandas/io/formats/excel.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ class CSSToExcelConverter(object):
5757

5858
def __init__(self, inherited=None):
5959
if inherited is not None:
60-
inherited = self.compute_css(inherited,
61-
self.compute_css.INITIAL_STYLE)
60+
inherited = self.compute_css(inherited)
6261

6362
self.inherited = inherited
6463

0 commit comments

Comments
 (0)