Skip to content

Commit 47dfa77

Browse files
authored
Add an example for tname for custom Python-to-Julia conversion rule (#450)
* Add an example for `tname` in a package. * Edit text.
1 parent 8efb071 commit 47dfa77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Convert/pyconvert.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Add a new conversion rule for `pyconvert`.
2323
### Arguments
2424
2525
- `tname` is a string of the form `"__module__:__qualname__"` identifying a Python type `t`,
26-
such as `"builtins:dict"`. This rule only applies to Python objects of this type.
26+
such as `"builtins:dict"` or `"sympy.core.symbol:Symbol"`. This rule only applies to
27+
Python objects of this type.
2728
- `T` is a Julia type, such that this rule only applies when the target type intersects
2829
with `T`.
2930
- `func` is the function implementing the rule.

0 commit comments

Comments
 (0)