Skip to content

Commit 0d22310

Browse files
committed
refactor(api): remove deprecated String.to_date method
BREAKING CHANGE: `String.to_date` is removed in favor of `String.as_date`.
1 parent db4c83b commit 0d22310

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ibis/expr/types/strings.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from ibis import util
1111
from ibis.expr.types.core import _binop
1212
from ibis.expr.types.generic import Column, Scalar, Value
13-
from ibis.util import deprecated
1413

1514
if TYPE_CHECKING:
1615
from collections.abc import Iterable, Sequence
@@ -1319,10 +1318,6 @@ def as_date(self, format_str: str, /) -> ir.DateValue:
13191318
"""
13201319
return ops.StringToDate(self, format_str).to_expr()
13211320

1322-
@deprecated(as_of="10.0", removed_in="11.0", instead="use as_date() instead")
1323-
def to_date(self, format_str: str, /) -> ir.DateValue:
1324-
return self.as_date(format_str)
1325-
13261321
def as_time(self, format_str: str, /) -> ir.TimeValue:
13271322
"""Parse a string and return a time.
13281323

0 commit comments

Comments
 (0)