mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-06 13:30:41 +02:00
fixes type
This commit is contained in:
parent
768be76cc8
commit
5f7cc7f671
@ -132,7 +132,7 @@ def parse_keyed_attribute(attr_string: str) -> tuple[str, str | float | int | No
|
|||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
|
|
||||||
key = None
|
key: str | float | int | None = None
|
||||||
attr_name = attr_string
|
attr_name = attr_string
|
||||||
if "[" in attr_string and attr_string.endswith("]"):
|
if "[" in attr_string and attr_string.endswith("]"):
|
||||||
attr_name, key_part = attr_string.split("[", 1)
|
attr_name, key_part = attr_string.split("[", 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user