try_parse method

On this page

try_parse

Converts the string representation of edges to its class equivalent.

def try_parse(cls, s, edges):
    ...
Parameter Type Description
s str A string containing edges to convert.
edges TemplateLinkedPositionEdges When the method returns, it contains the instance of TemplateLinkedPositionEdges class that is equivalent to the value specified in s parameter, if the conversion is succeeded; otherwise, None.

Returns: bool: True if s is converted successfully; otherwise, False.

See Also

On this page