From c97f89041870b9aa7ad7f3064f862c04ccf9c7e5 Mon Sep 17 00:00:00 2001 From: Frames White Date: Tue, 13 Aug 2024 15:27:13 +0800 Subject: [PATCH] Remove type piracy of copy --- src/Copier.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Copier.jl b/src/Copier.jl index 5d2682a4..50b5374e 100644 --- a/src/Copier.jl +++ b/src/Copier.jl @@ -23,13 +23,14 @@ end Wrapper around [copier.run_copy](https://copier.readthedocs.io/en/stable/reference/main/#copier.main.run_copy). This is an internal function, if BestieTemplate's main API is not sufficient, open an issue. +Note: this is not `Base.copy`, inside the Copier module we shadow that name. """ -function Base.copy(src_path, dst_path, data::Dict = Dict(); kwargs...) +function copy(src_path, dst_path, data::Dict = Dict(); kwargs...) copier = PythonCall.pyimport("copier") copier.run_copy(src_path, dst_path, data; kwargs...) end -function Base.copy(dst_path, data::Dict = Dict(); kwargs...) +function copy(dst_path, data::Dict = Dict(); kwargs...) copy(joinpath(@__DIR__, ".."), dst_path, data; kwargs...) end