From 2105d8c67cf855bed4a7526cd1a36c5aae3d1418 Mon Sep 17 00:00:00 2001 From: marius Date: Mon, 17 Sep 2018 19:19:09 +0200 Subject: [PATCH] remove const declaration in @pydef which did nothing in the local scope see https://github.com/JuliaLang/julia/pull/23259 --- src/pyclass.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyclass.jl b/src/pyclass.jl index ed315b47..a1217378 100644 --- a/src/pyclass.jl +++ b/src/pyclass.jl @@ -150,7 +150,7 @@ Multiple dispatch works, too: """ macro pydef(class_expr) class_name, _, _ = parse_pydef_toplevel(class_expr) - esc(:(const $class_name = $PyCall.@pydef_object($class_expr))) + esc(:($class_name = $PyCall.@pydef_object($class_expr))) end """