Skip to content

Commit 3b8e6ae

Browse files
committed
Fix formatting.
1 parent 184e55c commit 3b8e6ae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pandas/core/arrays/string_.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ def __eq__(self, other: object) -> bool:
219219
return False
220220

221221
def __setstate__(self, state):
222-
self.storage = state.pop('storage', 'python')
223-
self._na_value = state.pop('_na_value', libmissing.NA)
224-
222+
self.storage = state.pop("storage", "python")
223+
self._na_value = state.pop("_na_value", libmissing.NA)
224+
225225
def __hash__(self) -> int:
226226
# need to override __hash__ as well because of overriding __eq__
227227
return super().__hash__()

pandas/tests/io/generate_legacy_storage_files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def create_pickle_data():
147147
"float": Index(np.arange(10, dtype=np.float64)),
148148
"uint": Index(np.arange(10, dtype=np.uint64)),
149149
"timedelta": timedelta_range("00:00:00", freq="30min", periods=10),
150-
"string": Index(["foo", "bar", "baz", "qux", "quux"], dtype='string'),
150+
"string": Index(["foo", "bar", "baz", "qux", "quux"], dtype="string"),
151151
}
152152

153153
index["range"] = RangeIndex(10)
@@ -240,7 +240,7 @@ def create_pickle_data():
240240
"A": Series(["foo", "bar", "baz", "qux", "quux"], dtype="string"),
241241
"B": Series(["one", "two", "one", "two", "three"], dtype="string"),
242242
}
243-
)
243+
),
244244
}
245245

246246
cat = {

0 commit comments

Comments
 (0)