From c840935f1ac85546b25a51cfe16f4068248de298 Mon Sep 17 00:00:00 2001 From: Hantao Cui Date: Fri, 2 Feb 2024 16:12:02 -0600 Subject: [PATCH 1/2] Add an example for `tname` in a package. --- src/Convert/pyconvert.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Convert/pyconvert.jl b/src/Convert/pyconvert.jl index ff775e66..6cff37c7 100644 --- a/src/Convert/pyconvert.jl +++ b/src/Convert/pyconvert.jl @@ -23,7 +23,8 @@ Add a new conversion rule for `pyconvert`. ### Arguments - `tname` is a string of the form `"__module__:__qualname__"` identifying a Python type `t`, - such as `"builtins:dict"`. This rule only applies to Python objects of this type. + such as `"builtins:dict"` and `"sympy.core.symbol:Symbol"`. This rule only applies to + Python objects of this type. - `T` is a Julia type, such that this rule only applies when the target type intersects with `T`. - `func` is the function implementing the rule. From 9bfe1db6e063242d05722b663804ba31bb921cfc Mon Sep 17 00:00:00 2001 From: Hantao Cui Date: Fri, 2 Feb 2024 16:13:51 -0600 Subject: [PATCH 2/2] Edit text. --- src/Convert/pyconvert.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Convert/pyconvert.jl b/src/Convert/pyconvert.jl index 6cff37c7..a7293051 100644 --- a/src/Convert/pyconvert.jl +++ b/src/Convert/pyconvert.jl @@ -23,7 +23,7 @@ Add a new conversion rule for `pyconvert`. ### Arguments - `tname` is a string of the form `"__module__:__qualname__"` identifying a Python type `t`, - such as `"builtins:dict"` and `"sympy.core.symbol:Symbol"`. This rule only applies to + such as `"builtins:dict"` or `"sympy.core.symbol:Symbol"`. This rule only applies to Python objects of this type. - `T` is a Julia type, such that this rule only applies when the target type intersects with `T`.