Skip to content

Commit 9b147ce

Browse files
fix mypy error introduced in pandas-dev#27949
1 parent 2a507d0 commit 9b147ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/strings.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from functools import wraps
33
import re
44
import textwrap
5-
from typing import TYPE_CHECKING, Dict, List, Set, Tuple
5+
from typing import TYPE_CHECKING, Dict, List, Optional, Set, Tuple
66
import warnings
77

88
import numpy as np
@@ -2059,6 +2059,7 @@ def _wrap_result(
20592059
# case we'll want to return the same dtype as the input.
20602060
# Or we can be wrapping a numeric output, in which case we don't want
20612061
# to return a StringArray.
2062+
dtype: Optional[str]
20622063
if self._is_string and returns_string:
20632064
dtype = "string"
20642065
else:

0 commit comments

Comments
 (0)