
    Kig	                     @    S r SSKJrJr  SSKJrJrJr   " S S5      rg)zH
gspread.cell
~~~~~~~~~~~~

This module contains common cells' models.

    )OptionalUnion   )a1_to_rowcol
numericiserowcol_to_a1c            	           \ rS rSrSrSS\S\S\\   SS4S jjr\	SS	\S\SS 4S
 jj5       r
S\4S jrS\S\4S jr\S\4S j5       r\S\4S j5       r\S\\\\4      4S j5       r\S\4S j5       rSrg)Cell   z_An instance of this class represents a single cell
in a :class:`~gspread.worksheet.Worksheet`.
rowcolvaluereturnNc                 (    Xl         X l        X0l        g )N)_row_colr   )selfr   r   r   s       _C:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\gspread/cell.py__init__Cell.__init__   s    		 %*
    labelc                 .    [        U5      u  p4U " X4U5      $ )zInstantiate 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_addressCell.from_address   s      &3U##r   c                     SR                  U R                  R                  U R                  U R                  [        U R                  5      5      $ )Nz<{} R{}C{} {}>)format	__class____name__r   r   reprr   r   s    r   __repr__Cell.__repr__&   s<    &&NN##HHHH	
 	
r   otherc                     [        U[        5      (       d  gU R                  UR                  :H  nU R                  UR                  :H  nU R                  UR                  :H  nU=(       a    U=(       a    U$ )NF)
isinstancer
   r   r   r   )r   r%   same_rowsame_col
same_values        r   __eq__Cell.__eq__.   sX    %&&88uyy(88uyy(ZZ5;;.
3H33r   c                     U R                   $ )z$Row number of the cell.

:type: int
)r   r"   s    r   r   Cell.row7        yyr   c                     U R                   $ )z'Column number of the cell.

:type: int
)r   r"   s    r   r   Cell.col?   r/   r   c                     [        U R                  SS9n[        U[        5      (       d  [        U[        5      (       a  U$ g)zNumeric 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   r6   Cell.numeric_valueG   s8     #4::TB mS))Zu-M-M  r   c                 B    [        U R                  U R                  5      $ )z)Cell address in A1 notation.

:type: str
)r   r   r   r"   s    r   addressCell.addressY   s     DHHdhh//r   )r   r   r   ) )r    
__module____qualname____firstlineno____doc__r4   r   strr   classmethodr   r#   objectboolr+   propertyr   r   r   r5   r6   r9   __static_attributes__ r   r   r
   r
      s    *C *c *(3- * * 	$ 	$S 	$& 	$ 	$
# 
4F 4t 4 S   S   xc5j(9:  " 0 0 0r   r
   N)	r?   typingr   r   utilsr   r   r   r
   rF   r   r   <module>rI      s!    # 9 9Q0 Q0r   