@@ -363,31 +363,31 @@ Base.broadcastable(x::Py) = Ref(x)
363363(f:: Py )(args... ; kwargs... ) = pycall (f, args... ; kwargs... )
364364
365365# comparisons
366- Base.:(== )(x:: Py , y:: Py ) = pyeq (x, y)
367- Base.:(!= )(x:: Py , y:: Py ) = pyne (x, y)
368- Base.:(<= )(x:: Py , y:: Py ) = pyle (x, y)
369- Base.:(< )(x:: Py , y:: Py ) = pylt (x, y)
370- Base.:(>= )(x:: Py , y:: Py ) = pyge (x, y)
371- Base.:(> )(x:: Py , y:: Py ) = pygt (x, y)
366+ Base.:(== )(x:: Py , y:: Py ) = pyeq (Bool, x, y)
367+ Base.:(!= )(x:: Py , y:: Py ) = pyne (Bool, x, y)
368+ Base.:(<= )(x:: Py , y:: Py ) = pyle (Bool, x, y)
369+ Base.:(< )(x:: Py , y:: Py ) = pylt (Bool, x, y)
370+ Base.:(>= )(x:: Py , y:: Py ) = pyge (Bool, x, y)
371+ Base.:(> )(x:: Py , y:: Py ) = pygt (Bool, x, y)
372372Base. isless (x:: Py , y:: Py ) = pylt (Bool, x, y)
373373Base. isequal (x:: Py , y:: Py ) = pyeq (Bool, x, y)
374374
375375# we also allow comparison with numbers
376- Base.:(== )(x:: Py , y:: Number ) = pyeq (x, y)
377- Base.:(!= )(x:: Py , y:: Number ) = pyne (x, y)
378- Base.:(<= )(x:: Py , y:: Number ) = pyle (x, y)
379- Base.:(< )(x:: Py , y:: Number ) = pylt (x, y)
380- Base.:(>= )(x:: Py , y:: Number ) = pyge (x, y)
381- Base.:(> )(x:: Py , y:: Number ) = pygt (x, y)
376+ Base.:(== )(x:: Py , y:: Number ) = pyeq (Bool, x, y)
377+ Base.:(!= )(x:: Py , y:: Number ) = pyne (Bool, x, y)
378+ Base.:(<= )(x:: Py , y:: Number ) = pyle (Bool, x, y)
379+ Base.:(< )(x:: Py , y:: Number ) = pylt (Bool, x, y)
380+ Base.:(>= )(x:: Py , y:: Number ) = pyge (Bool, x, y)
381+ Base.:(> )(x:: Py , y:: Number ) = pygt (Bool, x, y)
382382Base. isless (x:: Py , y:: Number ) = pylt (Bool, x, y)
383383Base. isequal (x:: Py , y:: Number ) = pyeq (Bool, x, y)
384384
385- Base.:(== )(x:: Number , y:: Py ) = pyeq (x, y)
386- Base.:(!= )(x:: Number , y:: Py ) = pyne (x, y)
387- Base.:(<= )(x:: Number , y:: Py ) = pyle (x, y)
388- Base.:(< )(x:: Number , y:: Py ) = pylt (x, y)
389- Base.:(>= )(x:: Number , y:: Py ) = pyge (x, y)
390- Base.:(> )(x:: Number , y:: Py ) = pygt (x, y)
385+ Base.:(== )(x:: Number , y:: Py ) = pyeq (Bool, x, y)
386+ Base.:(!= )(x:: Number , y:: Py ) = pyne (Bool, x, y)
387+ Base.:(<= )(x:: Number , y:: Py ) = pyle (Bool, x, y)
388+ Base.:(< )(x:: Number , y:: Py ) = pylt (Bool, x, y)
389+ Base.:(>= )(x:: Number , y:: Py ) = pyge (Bool, x, y)
390+ Base.:(> )(x:: Number , y:: Py ) = pygt (Bool, x, y)
391391Base. isless (x:: Number , y:: Py ) = pylt (Bool, x, y)
392392Base. isequal (x:: Number , y:: Py ) = pyeq (Bool, x, y)
393393
0 commit comments