From 80f052308eb7390ac33151968e0f4ba6615a7e7c Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Wed, 27 Mar 2019 19:35:58 -0700 Subject: [PATCH] Removed unused class variable, module from mypy blacklist --- mypy.ini | 3 --- pandas/io/formats/css.py | 5 +---- pandas/io/formats/excel.py | 3 +-- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/mypy.ini b/mypy.ini index b7dbf390fa8c9..2c407602e0d6e 100644 --- a/mypy.ini +++ b/mypy.ini @@ -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 diff --git a/pandas/io/formats/css.py b/pandas/io/formats/css.py index 429c98b579ca0..be6b7b18975e5 100644 --- a/pandas/io/formats/css.py +++ b/pandas/io/formats/css.py @@ -15,9 +15,6 @@ class CSSResolver(object): """ - INITIAL_STYLE = { - } - def __call__(self, declarations_str, inherited=None): """ the given declarations to atomic properties @@ -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 diff --git a/pandas/io/formats/excel.py b/pandas/io/formats/excel.py index ec8bc1bbc53dd..aa88f6c520c0d 100644 --- a/pandas/io/formats/excel.py +++ b/pandas/io/formats/excel.py @@ -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