a
    -=ic                     @   s   d dl ZG dd dZdS )    Nc                   @   s   e Zd ZU dZdZeje ed< dZ	eje ed< dZ
eje ed< dZeje ed< edddd	Zed
ddZed
ddZed
ddZed
ddZdS )	UserAgenta  Represents a parsed user agent header value.

    The default implementation does no parsing, only the :attr:`string`
    attribute is set. A subclass may parse the string to set the
    common attributes or expose other information. Set
    :attr:`werkzeug.wrappers.Request.user_agent_class` to use a
    subclass.

    :param string: The header value to parse.

    .. versionadded:: 2.0
        This replaces the previous ``useragents`` module, but does not
        provide a built-in parser.
    Nplatformbrowserversionlanguage)stringreturnc                 C   s
   || _ d S Nr   )selfr    r   d/home/droni/.local/share/virtualenvs/DPS-5Je3_V2c/lib/python3.9/site-packages/werkzeug/user_agent.py__init__    s    zUserAgent.__init__)r   c                 C   s"   dt | j d| j d| j dS )N< />)type__name__r   r   r   r   r   r   __repr__$   s    zUserAgent.__repr__c                 C   s   | j S r	   r
   r   r   r   r   __str__'   s    zUserAgent.__str__c                 C   s
   t | jS r	   )boolr   r   r   r   r   __bool__*   s    zUserAgent.__bool__c                 C   s   | j S )zConvert to a header value.r
   r   r   r   r   	to_header-   s    zUserAgent.to_header)r   
__module____qualname____doc__r   tOptionalstr__annotations__r   r   r   r   r   r   r   r   r   r   r   r   r   r      s   
r   )typingr   r   r   r   r   r   <module>   s   