Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dalonsoa committed Sep 5, 2024
1 parent 809a712 commit cf5a5ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wsimod/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
>>> def patch_default_pull_set_handler(self, vqip):
>>> return {}
If patching a method of an attribute, the `is_attr` argument should be set to `True` and
the target should include the node name and the attribute name and the method name, all
separated by periods, eg. `node_name.attribute_name.method_name`.
It should be noted that the patched function should have the same signature as the
original method or attribute, and the return type should be the same as well, otherwise
there will be a runtime error.
Expand Down

0 comments on commit cf5a5ae

Please sign in to comment.