Strange warning with `Pkg.test("LightGraphs")`

Apply this

diff --git a/src/linalg/graphmatrices.jl b/src/linalg/graphmatrices.jl
index a84efd0..790be47 100644
--- a/src/linalg/graphmatrices.jl
+++ b/src/linalg/graphmatrices.jl
@@ -109,7 +109,7 @@ different scaled GraphMatrix types.
 """
 struct Noop end
 
-Base.broadcast(::typeof(*), ::Noop, x) = x
+Broadcast.broadcasted(::typeof(*), ::Noop, x) = x
 
 LinearAlgebra.Diagonal(::Noop) = Noop()

to your branch sbromberger/fix-0.7-depwarns (PR).

Basically, broadcast(::typeof(*), ::Noop, x) = x is never called unless you literally call broadcast (i.e. it will not be invoked by . syntax).

Relevant reading for new broadcast interface:

2 Likes