(topicName: Sequence[str])
return name
If topicName is a string, just return it
    as is. If it is a topic definition object (ie an object that has
    'msgDataSpec' as data member), return the dotted name of corresponding
    topic. Otherwise, assume topicName is a tuple and convert it to to a
    dotted name i.e. ('a','b','c') => 'a.b.c'. Empty name is not allowed
    (ValueError). The reverse operation is tupleize(topicName).
If topicName is a string, just return it
    as is. If it is a topic definition object (ie an object that has
    'msgDataSpec' as data member), return the dotted name of corresponding
    topic. Otherwise, assume topicName is a tuple and convert it to to a
    dotted name i.e. ('a','b','c') => 'a.b.c'. Empty name is not allowed
    (ValueError). The reverse operation is tupleize(topicName).
If topicName is a string just return it as is . If it is a topic definition object ( ie an object that has msgDataSpec as data member ) return the dotted name of corresponding topic . Otherwise assume topicName is a tuple and convert it to to a dotted name i . e . ( a b c ) = > a . b . c . Empty name is not allowed ( ValueError ) . The reverse operation is tupleize ( topicName ) .
def stringize(topicName: Sequence[str]) -> str:
    """
    If topicName is a string, just return it
    as is. If it is a topic definition object (ie an object that has
    'msgDataSpec' as data member), return the dotted name of corresponding
    topic. Otherwise, assume topicName is a tuple and convert it to to a
    dotted name i.e. ('a','b','c') => 'a.b.c'. Empty name is not allowed
    (ValueError). The reverse operation is tupleize(topicName).
    """
    if isinstance(topicName, str):
        return topicName

    if hasattr(topicName, "_topicNameStr"):
        return topicName._topicNameStr

    try:
        name = '.'.join(topicName)
    except Exception:
        exc = sys.exc_info()[1]
        raise TopicNameError(topicName, str(exc))

    return name
def stringize ( topicName : Sequence [ str ] ) -> str : if isinstance ( topicName , str ) : return topicName if hasattr ( topicName , "_topicNameStr" ) : return topicName . _topicNameStr try : name = '.' . join ( topicName ) except Exception : exc = sys . exc_info ( ) [ 1 ] raise TopicNameError ( topicName , str ( exc ) ) return name