From 5799591bdcebac7eeb48c8e0783ea330906c1c03 Mon Sep 17 00:00:00 2001 From: Pepijn de Vos Date: Thu, 2 Nov 2023 18:28:45 +0100 Subject: [PATCH] Change typeof(x) <: y to x isa y --- src/MLP.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MLP.jl b/src/MLP.jl index c47f936..71721fa 100644 --- a/src/MLP.jl +++ b/src/MLP.jl @@ -49,7 +49,7 @@ function solve( g, f = prob.g, prob.f # errors - typeof(prob.x0_sample) <: NoSampling ? nothing : error( + prob.x0_sample isa NoSampling ? nothing : error( "`MLP` algorithm can only be used with `x0_sample=NoSampling()`.") if multithreading