Parses a _NodePathBuilder from a string representation. Example: 'wf@1/node@2'.
(cls, path_str: str)
| 30 | |
| 31 | @classmethod |
| 32 | def from_string(cls, path_str: str) -> _NodePathBuilder: |
| 33 | """Parses a _NodePathBuilder from a string representation. |
| 34 | |
| 35 | Example: 'wf@1/node@2'. |
| 36 | """ |
| 37 | if not path_str: |
| 38 | return cls([]) |
| 39 | return cls(path_str.split('/')) |
| 40 | |
| 41 | def __str__(self) -> str: |
| 42 | """Returns the string representation of the path.""" |