Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an example for tname for custom Python-to-Julia conversion rule #450

Merged
merged 2 commits into from
Feb 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading