Skip to content

Commit 810a695

Browse files
committed
make the class method a proper class method
1 parent 1397112 commit 810a695

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modin/core/storage_formats/base/query_compiler.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ class QCCoercionCost(Enum):
136136
COST_HIGH = 750
137137
COST_IMPOSSIBLE = 1000
138138

139-
def validate_coercsion_cost(cost: QCCoercionCost):
139+
@classmethod
140+
def validate_coercsion_cost(cls, cost: QCCoercionCost):
140141
if int(cost) < int(QCCoercionCost.COST_UNKNOWN) or int(cost) > int(
141142
QCCoercionCost.COST_IMPOSSIBLE
142143
):

0 commit comments

Comments
 (0)