We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DataType.name
1 parent 20bec13 commit 22409e1Copy full SHA for 22409e1
ibis/expr/datatypes/core.py
@@ -22,6 +22,7 @@
22
from public import public
23
from typing_extensions import Self, get_args, get_origin
24
25
+from ibis import util
26
from ibis.common.annotations import attribute
27
from ibis.common.collections import FrozenOrderedDict, MapSet
28
from ibis.common.dispatch import lazy_singledispatch
@@ -127,8 +128,12 @@ def _pretty_piece(self) -> str:
127
128
129
# TODO(kszucs): should remove it, only used internally
130
@property
131
+ @util.deprecated(
132
+ instead="use dtype_instance.__class__.__name__",
133
+ as_of="10.5.0",
134
+ removed_in="11.0.0",
135
+ )
136
def name(self) -> str:
- """Return the name of the data type."""
137
return self.__class__.__name__
138
139
@classmethod
0 commit comments