Skip to content

Commit 965a910

Browse files
committed
Fixed linting issues
1 parent 4d697b7 commit 965a910

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pandas/_libs/lib.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def is_scalar(val: object) -> bool:
156156

157157
return (cnp.PyArray_IsAnyScalar(val)
158158
# As of numpy-1.9, PyArray_IsAnyScalar misses bytearrays on Py3.
159-
or isinstance(val,(bytes, Fraction, Number))
159+
or isinstance(val, (bytes, Fraction, Number))
160160
# We differ from numpy (as of 1.10), which claims that None is
161161
# not scalar in np.isscalar().
162162
or val is None
@@ -168,6 +168,7 @@ def is_scalar(val: object) -> bool:
168168
or is_interval(val)
169169
or util.is_offset_object(val))
170170

171+
171172
def item_from_zerodim(val: object) -> object:
172173
"""
173174
If the value is a zerodim array, return the item it contains.

pandas/tests/dtypes/test_inference.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,7 @@ def test_is_scalar_pandas_containers(self):
12501250
assert not is_scalar(Index([]))
12511251
assert not is_scalar(Index([1]))
12521252

1253+
12531254
def test_datetimeindex_from_empty_datetime64_array():
12541255
for unit in ['ms', 'us', 'ns']:
12551256
idx = DatetimeIndex(np.array([], dtype='datetime64[%s]' % unit))

0 commit comments

Comments
 (0)