Skip to content

Commit 2b7f79c

Browse files
authored
Merge pull request #1089 from InsightSoftwareConsortium/python-dict-fromtype
docs(python): dict_from_<type>
2 parents 51a93b5 + c30578b commit 2b7f79c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/python/itk_python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ itk_image = itk.image_from_dict(image_dict)
2020

2121
## Convert from `itk` to `itkwasm`
2222

23-
To convert from a native `itk` Python type to an `itkwasm` dataclass interface type, first convert the `itkwasm` type to a dictionary the `itk.<type>_from_dict`, then pass the dictionary as keyword arguments to `itkwasm` constructor with the `**` operator. Example:
23+
To convert from a native `itk` Python type to an `itkwasm` dataclass interface type, first convert the `itkwasm` type to a dictionary with `itk.dict_from_<type>`, then pass the dictionary as keyword arguments to `itkwasm` constructor with the `**` operator. Example:
2424

2525

2626
```python

0 commit comments

Comments
 (0)