# SDK Pullenti Lingvo, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved.
# Non-Commercial Freeware and Commercial Software.
# This class is generated using the converter Unisharping (www.unisharping.ru) from Pullenti C# project.
# The latest version of the code is available on the site www.pullenti.ru

import io
from pullenti.unisharp.Utils import Utils

class PersonTokenData:
    
    def __init__(self, t : 'Token') -> None:
        self.tok = None;
        self.attr = None;
        self.tok = t
        t.tag = (self)
    
    def __str__(self) -> str:
        tmp = io.StringIO()
        print(str(self.tok), end="", file=tmp)
        if (self.attr is not None): 
            print(" \r\nAttr: {0}".format(str(self.attr)), end="", file=tmp, flush=True)
        return Utils.toStringStringIO(tmp)