Ë
    v»•jg	  ã                   ó@   — d Z ddlmZmZ ddlmZmZmZ  G d„ d«      Zy)zH
gspread.cell
~~~~~~~~~~~~

This module contains common cells' models.

é    )ÚOptionalÚUnioné   )Úa1_to_rowcolÚ
numericiseÚrowcol_to_a1c            	       óÔ   — e Zd ZdZddededee   ddfd„Zeddededd fd	„«       Z	defd
„Z
dedefd„Zedefd„«       Zedefd„«       Zedeeeef      fd„«       Zedefd„«       Zy)ÚCellzgAn instance of this class represents a single cell
    in a :class:`~gspread.worksheet.Worksheet`.
    ÚrowÚcolÚvalueÚreturnNc                 ó.   — || _         || _        || _        y )N)Ú_rowÚ_colr   )Úselfr   r   r   s       ú?/var/www/html/venv/lib/python3.12/site-packages/gspread/cell.pyÚ__init__zCell.__init__   s   € ØˆŒ	ØˆŒ	ð %*ˆ�
ó    Úlabelc                 ó2   — t        |«      \  }} | |||«      S )zøInstantiate a new :class:`~gspread.cell.Cell`
        from an A1 notation address and a value

        :param string label: the A1 label of the returned cell
        :param string value: the value for the returned cell
        :rtype: Cell
        )r   )Úclsr   r   r   r   s        r   Úfrom_addresszCell.from_address   s!   € ô   Ó&‰ˆˆSÙ�3˜˜UÓ#Ð#r   c                 ó    — dj                  | j                  j                  | j                  | j                  t        | j                  «      «      S )Nz<{} R{}C{} {}>)ÚformatÚ	__class__Ú__name__r   r   Úreprr   ©r   s    r   Ú__repr__zCell.__repr__&   s<   € Ø×&Ñ&Ø�N‰N×#Ñ#Ø�H‰HØ�H‰HÜ�—‘Óó	
ð 	
r   Úotherc                 óÎ   — t        |t        «      sy| j                  |j                  k(  }| j                  |j                  k(  }| j                  |j                  k(  }|xr |xr |S )NF)Ú
isinstancer
   r   r   r   )r   r!   Úsame_rowÚsame_colÚ
same_values        r   Ú__eq__zCell.__eq__.   sU   € Ü˜%¤Ô&Øà—8‘8˜uŸy™yÑ(ˆØ—8‘8˜uŸy™yÑ(ˆØ—Z‘Z 5§;¡;Ñ.ˆ
ØÒ3˜HÒ3¨Ð3r   c                 ó   — | j                   S )z4Row number of the cell.

        :type: int
        )r   r   s    r   r   zCell.row7   ó   € ð �y‰yÐr   c                 ó   — | j                   S )z7Column number of the cell.

        :type: int
        )r   r   s    r   r   zCell.col?   r)   r   c                 óv   — t        | j                  d¬«      }t        |t        «      st        |t        «      r|S y)zÈNumeric value of this cell.

        Will try to numericise this cell value,
        upon success will return its numeric value
        with the appropriate type.

        :type: int or float
        N)Údefault_blank)r   r   r#   ÚintÚfloat)r   Únumeric_values     r   r/   zCell.numeric_valueG   s2   € ô # 4§:¡:¸TÔBˆô �m¤SÔ)¬Z¸ÄuÔ-MØ Ð àr   c                 óB   — t        | j                  | j                  «      S )z9Cell address in A1 notation.

        :type: str
        )r   r   r   r   s    r   ÚaddresszCell.addressY   s   € ô ˜DŸH™H d§h¡hÓ/Ð/r   )Ú )r   Ú
__module__Ú__qualname__Ú__doc__r-   r   Ústrr   Úclassmethodr   r    ÚobjectÚboolr'   Úpropertyr   r   r   r.   r/   r1   © r   r   r
   r
      sî   „ ññ*˜Cð * cð *°(¸3±-ð *Èó *ð ñ	$ ð 	$¨Sð 	$¸&ò 	$ó ð	$ð
˜#ó 
ð4˜Fð 4 tó 4ð ð�Sò ó ðð ð�Sò ó ðð ð˜x¨¨c°5¨jÑ(9Ñ:ò ó ðð" ð0˜ò 0ó ñ0r   r
   N)	r5   Útypingr   r   Úutilsr   r   r   r
   r;   r   r   ú<module>r>      s!   ðñ÷ #ç 9Ñ 9÷Q0ò Q0r   