From 47dfa77a3d4dc33e09f7576d2b33a6e5cc513527 Mon Sep 17 00:00:00 2001 From: Hantao Cui Date: Sun, 18 Feb 2024 07:56:51 -0600 Subject: [PATCH] Add an example for `tname` for custom Python-to-Julia conversion rule (#450) * Add an example for `tname` in a package. * Edit text. --- 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..a7293051 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"` 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`. - `func` is the function implementing the rule.