Skip to content

Commit 22409e1

Browse files
committed
feat(dtype): deprecate DataType.name
1 parent 20bec13 commit 22409e1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ibis/expr/datatypes/core.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from public import public
2323
from typing_extensions import Self, get_args, get_origin
2424

25+
from ibis import util
2526
from ibis.common.annotations import attribute
2627
from ibis.common.collections import FrozenOrderedDict, MapSet
2728
from ibis.common.dispatch import lazy_singledispatch
@@ -127,8 +128,12 @@ def _pretty_piece(self) -> str:
127128

128129
# TODO(kszucs): should remove it, only used internally
129130
@property
131+
@util.deprecated(
132+
instead="use dtype_instance.__class__.__name__",
133+
as_of="10.5.0",
134+
removed_in="11.0.0",
135+
)
130136
def name(self) -> str:
131-
"""Return the name of the data type."""
132137
return self.__class__.__name__
133138

134139
@classmethod

0 commit comments

Comments
 (0)