Skip to content

Commit dcd80f3

Browse files
committed
Fixed linting issues
1 parent b28ba51 commit dcd80f3

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
@@ -159,7 +159,7 @@ def is_scalar(val: object) -> bint:
159159

160160
return (cnp.PyArray_IsAnyScalar(val)
161161
# As of numpy-1.9, PyArray_IsAnyScalar misses bytearrays on Py3.
162-
or isinstance(val,(bytes, Fraction, Number))
162+
or isinstance(val, (bytes, Fraction, Number))
163163
# We differ from numpy (as of 1.10), which claims that None is
164164
# not scalar in np.isscalar().
165165
or val is None
@@ -171,6 +171,7 @@ def is_scalar(val: object) -> bint:
171171
or is_interval(val)
172172
or util.is_offset_object(val))
173173

174+
174175
def item_from_zerodim(val: object) -> object:
175176
"""
176177
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
@@ -1187,6 +1187,7 @@ def test_is_scalar_pandas_containers(self):
11871187
assert not is_scalar(Index([]))
11881188
assert not is_scalar(Index([1]))
11891189

1190+
11901191
def test_datetimeindex_from_empty_datetime64_array():
11911192
for unit in ['ms', 'us', 'ns']:
11921193
idx = DatetimeIndex(np.array([], dtype='datetime64[%s]' % unit))

0 commit comments

Comments
 (0)