Skip to content

Commit 9e18874

Browse files
committed
More doc fixes
1 parent 1f8dfa7 commit 9e18874

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

modin/core/storage_formats/base/query_compiler.py

+2-27
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import abc
2323
import warnings
24-
from enum import Enum
24+
from enum import IntEnum
2525
from functools import cached_property
2626
from typing import TYPE_CHECKING, Hashable, List, Literal, Optional
2727

@@ -108,7 +108,7 @@ def axis_setter(self, labels):
108108
return axis_setter
109109

110110

111-
class QCCoercionCost(Enum):
111+
class QCCoercionCost(IntEnum): # noqa: PR01
112112
"""
113113
Coercion costs between Query Compilers.
114114
@@ -153,31 +153,6 @@ def validate_coersion_cost(cls, cost: QCCoercionCost):
153153
):
154154
raise ValueError("Query compiler coercsion cost out of range")
155155

156-
def __int__(self):
157-
"""
158-
Convert a QCCoercionCost to an integer.
159-
160-
Returns
161-
-------
162-
The integer value of the QCCoercionCost
163-
"""
164-
return self.value
165-
166-
def __add__(self, other) -> int:
167-
"""
168-
Add a QCCoercionCost to this QCCoercionCost.
169-
170-
Parameters
171-
----------
172-
other : QCCoercionCost
173-
174-
Returns
175-
-------
176-
The integer result of the addition
177-
"""
178-
return int(self) + int(other)
179-
180-
181156
# FIXME: many of the BaseQueryCompiler methods are hiding actual arguments
182157
# by using *args and **kwargs. They should be spread into actual parameters.
183158
# Currently actual arguments are placed in the methods docstrings, but since they're

0 commit comments

Comments
 (0)