Skip to content

Commit 430dd44

Browse files
committed
Add type hint to setstate.
1 parent 3b8e6ae commit 430dd44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/string_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def __eq__(self, other: object) -> bool:
218218
return self.storage == other.storage and self.na_value is other.na_value
219219
return False
220220

221-
def __setstate__(self, state):
221+
def __setstate__(self, state: MutableMapping[str, Any]) -> None:
222222
self.storage = state.pop("storage", "python")
223223
self._na_value = state.pop("_na_value", libmissing.NA)
224224

0 commit comments

Comments
 (0)