@@ -334,31 +334,31 @@ Base.broadcastable(x::Py) = Ref(x)
334334(f:: Py )(args... ; kwargs... ) = pycall (f, args... ; kwargs... )
335335
336336# comparisons
337- Base.:(== )(x:: Py , y:: Py ) = pyeq (x, y)
338- Base.:(!= )(x:: Py , y:: Py ) = pyne (x, y)
339- Base.:(<= )(x:: Py , y:: Py ) = pyle (x, y)
340- Base.:(< )(x:: Py , y:: Py ) = pylt (x, y)
341- Base.:(>= )(x:: Py , y:: Py ) = pyge (x, y)
342- Base.:(> )(x:: Py , y:: Py ) = pygt (x, y)
337+ Base.:(== )(x:: Py , y:: Py ) = pyeq (Bool, x, y)
338+ Base.:(!= )(x:: Py , y:: Py ) = pyne (Bool, x, y)
339+ Base.:(<= )(x:: Py , y:: Py ) = pyle (Bool, x, y)
340+ Base.:(< )(x:: Py , y:: Py ) = pylt (Bool, x, y)
341+ Base.:(>= )(x:: Py , y:: Py ) = pyge (Bool, x, y)
342+ Base.:(> )(x:: Py , y:: Py ) = pygt (Bool, x, y)
343343Base. isless (x:: Py , y:: Py ) = pylt (Bool, x, y)
344344Base. isequal (x:: Py , y:: Py ) = pyeq (Bool, x, y)
345345
346346# we also allow comparison with numbers
347- Base.:(== )(x:: Py , y:: Number ) = pyeq (x, y)
348- Base.:(!= )(x:: Py , y:: Number ) = pyne (x, y)
349- Base.:(<= )(x:: Py , y:: Number ) = pyle (x, y)
350- Base.:(< )(x:: Py , y:: Number ) = pylt (x, y)
351- Base.:(>= )(x:: Py , y:: Number ) = pyge (x, y)
352- Base.:(> )(x:: Py , y:: Number ) = pygt (x, y)
347+ Base.:(== )(x:: Py , y:: Number ) = pyeq (Bool, x, y)
348+ Base.:(!= )(x:: Py , y:: Number ) = pyne (Bool, x, y)
349+ Base.:(<= )(x:: Py , y:: Number ) = pyle (Bool, x, y)
350+ Base.:(< )(x:: Py , y:: Number ) = pylt (Bool, x, y)
351+ Base.:(>= )(x:: Py , y:: Number ) = pyge (Bool, x, y)
352+ Base.:(> )(x:: Py , y:: Number ) = pygt (Bool, x, y)
353353Base. isless (x:: Py , y:: Number ) = pylt (Bool, x, y)
354354Base. isequal (x:: Py , y:: Number ) = pyeq (Bool, x, y)
355355
356- Base.:(== )(x:: Number , y:: Py ) = pyeq (x, y)
357- Base.:(!= )(x:: Number , y:: Py ) = pyne (x, y)
358- Base.:(<= )(x:: Number , y:: Py ) = pyle (x, y)
359- Base.:(< )(x:: Number , y:: Py ) = pylt (x, y)
360- Base.:(>= )(x:: Number , y:: Py ) = pyge (x, y)
361- Base.:(> )(x:: Number , y:: Py ) = pygt (x, y)
356+ Base.:(== )(x:: Number , y:: Py ) = pyeq (Bool, x, y)
357+ Base.:(!= )(x:: Number , y:: Py ) = pyne (Bool, x, y)
358+ Base.:(<= )(x:: Number , y:: Py ) = pyle (Bool, x, y)
359+ Base.:(< )(x:: Number , y:: Py ) = pylt (Bool, x, y)
360+ Base.:(>= )(x:: Number , y:: Py ) = pyge (Bool, x, y)
361+ Base.:(> )(x:: Number , y:: Py ) = pygt (Bool, x, y)
362362Base. isless (x:: Number , y:: Py ) = pylt (Bool, x, y)
363363Base. isequal (x:: Number , y:: Py ) = pyeq (Bool, x, y)
364364
0 commit comments