Skip to content

Commit

Permalink
Add an example for tname for custom Python-to-Julia conversion rule (
Browse files Browse the repository at this point in the history
…#450)

* Add an example for `tname` in a package.

* Edit text.
  • Loading branch information
cuihantao authored Feb 18, 2024
1 parent 8efb071 commit 47dfa77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Convert/pyconvert.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 47dfa77

Please sign in to comment.