@@ -425,16 +425,16 @@ end
425425# Predefine the most common operators so the errors
426426# are more informative
427427function _overload_common_operators ()
428- # ! format: off
428+ # Overload the operators in batches (so that we don't hit the warning
429+ # about too many operators)
429430 operators = OperatorEnum (
430431 (+ , - , * , / , ^ , max, min, mod),
431- (
432- sin, cos, tan, exp, log, log1p, log2, log10, sqrt, cbrt, abs, sinh,
433- cosh, tanh, atan, asinh, acosh, round, sign, floor, ceil,
434- ),
432+ (sin, cos, tan, exp, log, log1p, log2, log10, sqrt, cbrt, abs, sinh),
435433 )
436- # ! format: on
437434 @extend_operators (operators, empty_old_operators = false , internal = true )
435+ operators = OperatorEnum ((), (cosh, tanh, atan, asinh, acosh, round, sign, floor, ceil))
436+ @extend_operators (operators, empty_old_operators = true , internal = true )
437+
438438 empty! (LATEST_UNARY_OPERATOR_MAPPING)
439439 empty! (LATEST_BINARY_OPERATOR_MAPPING)
440440 return nothing
0 commit comments