Skip to content

Commit

Permalink
Merge pull request #174 from tiqi-group/doc/fixes_docstring
Browse files Browse the repository at this point in the history
fixes docstring of add_prefix_to_full_access_path
  • Loading branch information
mosmuell authored Oct 3, 2024
2 parents 5e32a70 + 2aa370c commit 843675f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pydase"
version = "0.10.6"
version = "0.10.7"
description = "A flexible and robust Python library for creating, managing, and interacting with data services, with built-in support for web and RPC servers, and customizable features for diverse use cases."
authors = ["Mose Mueller <[email protected]>"]
readme = "README.md"
Expand Down
6 changes: 3 additions & 3 deletions src/pydase/utils/serialization/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ def add_prefix_to_full_access_path(
object.
Args:
data:
serialized_obj:
The serialized object to process.
prefix:
The prefix string to prepend to each full access path.
Expand All @@ -602,7 +602,7 @@ def add_prefix_to_full_access_path(
Example:
```python
>>> data = {
>>> serialized_obj = {
... "full_access_path": "",
... "value": {
... "item": {
Expand All @@ -612,7 +612,7 @@ def add_prefix_to_full_access_path(
... }
... }
...
... modified_data = add_prefix_to_full_access_path(data, 'prefix')
... modified_data = add_prefix_to_full_access_path(serialized_obj, 'prefix')
{"full_access_path": "prefix", "value": {"item": {"full_access_path":
"prefix.some_item_path", "value": 1.0}}}
```
Expand Down

0 comments on commit 843675f

Please sign in to comment.