Skip to content

Commit 03b2b7f

Browse files
Brian Tubuntwo
Brian Tu
authored andcommitted
Fix lint errors
1 parent dd443a8 commit 03b2b7f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pandas/core/indexes/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ class InvalidIndexError(Exception):
9090
_o_dtype = np.dtype(object)
9191
_Identity = object
9292

93+
9394
def _new_Index(cls, d):
9495
""" This is called upon unpickling, rather than the default which doesn't
9596
have arguments and breaks __new__

pandas/core/indexes/numeric.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ def _convert_tolerance(self, tolerance):
7676
if not np.issubdtype(tolerance.dtype, np.number):
7777
if tolerance.ndim > 0:
7878
raise ValueError(('tolerance argument for %s must contain '
79-
'numeric elements if it is list type') %
80-
(type(self).__name__,))
79+
'numeric elements if it is list type') %
80+
(type(self).__name__,))
8181
else:
8282
raise ValueError(('tolerance argument for %s must be numeric '
83-
'if it is a scalar: %r') %
84-
(type(self).__name__, tolerance))
83+
'if it is a scalar: %r') %
84+
(type(self).__name__, tolerance))
8585
return tolerance
8686

8787
@classmethod

pandas/tests/indexes/test_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ def test_get_indexer_strings(self):
11881188
with pytest.raises(TypeError):
11891189
idx.get_indexer(['a', 'b', 'c', 'd'], method='pad',
11901190
tolerance=[2, 2, 2, 2])
1191-
1191+
11921192
def test_get_indexer_numeric_index_boolean_target(self):
11931193
# GH 16877
11941194
numeric_idx = pd.Index(range(4))

0 commit comments

Comments
 (0)