From c8963e90513b9274b8c0e272431179e0315ccb33 Mon Sep 17 00:00:00 2001 From: jverzani Date: Sat, 13 Aug 2022 17:37:50 -0400 Subject: [PATCH 1/2] remove unbound argument --- Project.toml | 2 +- src/utils.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 60af4dd..6d9a023 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "SymPy" uuid = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6" -version = "1.1.7" +version = "1.1.8" [deps] CommonEq = "3709ef60-1bee-4518-9f2f-acd86f176c50" diff --git a/src/utils.jl b/src/utils.jl index 8441488..5781744 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -196,7 +196,7 @@ g(2⋅x) """ doit(ex::T; deep::Bool=false) where {T<:SymbolicObject} = ex.doit(deep=deep) -doit(; deep::Bool=false) where {T<:SymbolicObject} = ex -> doit(ex, deep=deep) +doit(; deep::Bool=false) = ex -> doit(ex, deep=deep) ## simplify(ex::SymbolicObject, ...) is exported """ From 926d904833e1aab49b75d0ed8a262970417fad70 Mon Sep 17 00:00:00 2001 From: jverzani Date: Sat, 13 Aug 2022 17:57:21 -0400 Subject: [PATCH 2/2] fix one doctest --- docs/src/Tutorial/basic_operations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/Tutorial/basic_operations.md b/docs/src/Tutorial/basic_operations.md index d06fcac..907a4a6 100644 --- a/docs/src/Tutorial/basic_operations.md +++ b/docs/src/Tutorial/basic_operations.md @@ -515,7 +515,7 @@ julia> ex = sin(x)^2 + x^2 x + sin (x) julia> body = convert(Expr, ex) -:(x ^ 2 + sin(x) ^ 2) +:(SymPy.__POW__(x, 2) + SymPy.__POW__(sin(x), 2)) julia> syms = Symbol.(free_symbols(ex)) 1-element Vector{Symbol}: