
    g                         d gZ ddlmZ ddlZej                  dk\  rddlmZ nddlmZ ddlm	Z	  G d d e	j                        Zy)	Blob    )
guess_typeN)      )Literal   )basec                   P    e Zd ZU dZdZdZed   ed<   dZdZ	dZ
dZed	efd
       Zy)r   zA Blob encapsulates a git blob object.

    See :manpage:`gitglossary(7)` on "blob":
    https://git-scm.com/docs/gitglossary#def_blob_object
    z
text/plainblobtypei  i  i    returnc                     d}| j                   rt        t        | j                               }|xr |d   xs | j                  S )z
        :return:
            String describing the mime type of this file (based on the filename)

        :note:
            Defaults to ``text/plain`` in case the actual file type is unknown.
        Nr   )pathr   strDEFAULT_MIME_TYPE)selfguessess     E/var/www/openai/venv/lib/python3.12/site-packages/git/objects/blob.py	mime_typezBlob.mime_type$   s<     99 TYY0G%71:?)?)??    N)__name__
__module____qualname____doc__r   r   r   __annotations__executable_mode	file_mode	link_mode	__slots__propertyr   r   r   r   r   r   r      sO     %"D'&/" OIII@3 @ @r   )__all__	mimetypesr   sysversion_infotypingr   typing_extensions r	   IndexObjectr   r   r   r   <module>r*      s?    (   
v) @4 @r   