Ë
    tPêjq  ã                  ób   — d Z ddlmZ ddlmZmZ ddlmZ ddl	m
Z d	d„Zd
d„Z G d„ de«      Zy)zO
Interfaces for formatting vulnerability results into a string representation.
é    )Úannotations)ÚABCÚabstractmethodNc                ó   — d| › �S )z*Return the OSV URL for a vulnerability ID.zhttps://osv.dev/vulnerability/© )Úvuln_ids    ú`/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/pip_audit/_format/interface.pyÚvuln_id_urlr
      s   € à+¨G¨9Ð5Ð5ó    c                ó   — d| › d�S )z"Return the PyPI URL for a package.zhttps://pypi.org/project/ú/r   )Únames    r	   Úpypi_urlr      s   € à& t f¨AÐ.Ð.r   c                  óJ   — e Zd ZdZeedd„«       «       Ze	 	 	 	 	 	 dd„«       Zy)ÚVulnerabilityFormatzQ
    Represents an abstract string representation for vulnerability results.
    c                ó   — t         ‚)a(  
        Is this format a "manifest" format, i.e. one that prints a summary
        of all results?

        Manifest formats are always rendered emitted unconditionally, even
        if the audit results contain nothing out of the ordinary
        (no vulnerabilities, skips, or fixes).
        ©ÚNotImplementedError)Úselfs    r	   Úis_manifestzVulnerabilityFormat.is_manifest   s
   € ô "Ð!r   c                ó   — t         ‚)zU
        Convert a mapping of dependencies to vulnerabilities into a string.
        r   )r   ÚresultÚfixess      r	   ÚformatzVulnerabilityFormat.format)   s
   € ô "Ð!r   N)ÚreturnÚbool)r   z;dict[service.Dependency, list[service.VulnerabilityResult]]r   zlist[fix.FixVersion]r   Ústr)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr   r   r   r   r   r	   r   r      sS   „ ñð Øò	"ó ó ð	"ð ð"àKð"ð $ð"ð 
ò	"ó ñ"r   r   )r   r   r   r   )r   r   r   r   )r!   Ú
__future__r   Úabcr   r   Úpip_audit._fixÚ_fixÚfixÚpip_audit._serviceÚ_serviceÚservicer
   r   r   r   r   r	   ú<module>r+      s.   ðñõ #ç #å Ý $ó6ó
/ô
"˜#õ "r   