Skip to content

Commit

Permalink
type-hint fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshadrach committed Feb 16, 2025
1 parent 6cd5f02 commit 5a836bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pandas/core/strings/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2103,7 +2103,9 @@ def slice_replace(self, start=None, stop=None, repl=None):
result = self._data.array._str_slice_replace(start, stop, repl)
return self._wrap_result(result)

def decode(self, encoding, errors: str = "strict", dtype: str | DtypeObj = None):
def decode(
self, encoding, errors: str = "strict", dtype: str | DtypeObj | None = None
):
"""
Decode character string in the Series/Index using indicated encoding.
Expand Down

0 comments on commit 5a836bb

Please sign in to comment.