@@ -76,6 +76,9 @@ def __eq__(self, other: Any) -> Union[ArrayType[bool], bool]:
7676 Args:
7777 other: Another object to compare to.
7878
79+ Returns:
80+ True, False, or a boolean :class:`numpy.ndarray`.
81+
7982 Examples:
8083 >>> class MyEnum(enums.Enum):
8184 ... foo = b"foo"
@@ -112,6 +115,9 @@ def __ne__(self, other: Any) -> Union[ArrayType[bool], bool]:
112115 Args:
113116 other: Another object to compare to.
114117
118+ Returns:
119+ True, False, or a boolean :class:`numpy.ndarray`.
120+
115121 Examples:
116122 >>> class MyEnum(enums.Enum):
117123 ... foo = b"foo"
@@ -155,7 +161,10 @@ def _forbidden_operation(self, other: Any) -> NoReturn:
155161 __or__ = _forbidden_operation
156162
157163 def decode (self ) -> ArrayType ["enums.Enum" ]:
158- """Return the enum items of the :obj:`.EnumArray`.
164+ """Decodes itself to a normal array.
165+
166+ Returns:
167+ The enum items of the :obj:`.EnumArray`.
159168
160169 Examples:
161170 >>> class MyEnum(enums.Enum):
@@ -175,7 +184,10 @@ def decode(self) -> ArrayType["enums.Enum"]:
175184 )
176185
177186 def decode_to_str (self ) -> ArrayType [str ]:
178- """Return the string identifiers of the :obj:`.EnumArray`.
187+ """Decodes itself to an array of strings.
188+
189+ Returns:
190+ The string identifiers of the :obj:`.EnumArray`.
179191
180192 Examples:
181193 >>> class MyEnum(enums.Enum):
0 commit comments