
    *Jf6                         d Z dZ G d de          Z G d de          Z G d de          Z G d d	e          Z G d
 de          Z G d de          Z	 G d de          Z
dS )z
Wrappers for numeric types.
zpsycopg.types.numericc                   T     e Zd ZdZeZdZdedd f fdZdef fdZ	def fdZ
 xZS )Int2zM
    Force dumping a Python `!int` as a PostgreSQL :sql:`smallint/int2`.
     argreturnc                 H    t                                          | |          S Nsuper__new__clsr   	__class__s     T/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/psycopg/_wrappers.pyr   zInt2.__new__       wwsC(((    c                 D    t                                                      S r   r
   __repr__selfr   s    r   __str__zInt2.__str__       ww!!!r   c                 d    | j         j         dt                                                       dS N()r   __name__r
   r   r   s    r   r   zInt2.__repr__   /    .)AAEGG,<,<,>,>AAAAr   r   
__module____qualname____doc___MODULE	__slots__intr   strr   r   __classcell__r   s   @r   r   r                JI)# )& ) ) ) ) ) )" " " " " " "B# B B B B B B B B B Br   r   c                   T     e Zd ZdZeZdZdedd f fdZdef fdZ	def fdZ
 xZS )Int4zL
    Force dumping a Python `!int` as a PostgreSQL :sql:`integer/int4`.
    r   r   r   c                 H    t                                          | |          S r   r	   r   s     r   r   zInt4.__new__(   r   r   c                 D    t                                                      S r   r   r   s    r   r   zInt4.__str__+   r   r   c                 d    | j         j         dt                                                       dS r   r   r   s    r   r   zInt4.__repr__.   r   r   r    r)   s   @r   r,   r,       r*   r   r,   c                   T     e Zd ZdZeZdZdedd f fdZdef fdZ	def fdZ
 xZS )Int8zK
    Force dumping a Python `!int` as a PostgreSQL :sql:`bigint/int8`.
    r   r   r   c                 H    t                                          | |          S r   r	   r   s     r   r   zInt8.__new__:   r   r   c                 D    t                                                      S r   r   r   s    r   r   zInt8.__str__=   r   r   c                 d    | j         j         dt                                                       dS r   r   r   s    r   r   zInt8.__repr__@   r   r   r    r)   s   @r   r1   r1   2   r*   r   r1   c                   T     e Zd ZdZeZdZdedd f fdZdef fdZ	def fdZ
 xZS )
IntNumericzO
    Force dumping a Python `!int` as a PostgreSQL :sql:`numeric/decimal`.
    r   r   r   c                 H    t                                          | |          S r   r	   r   s     r   r   zIntNumeric.__new__L   r   r   c                 D    t                                                      S r   r   r   s    r   r   zIntNumeric.__str__O   r   r   c                 d    | j         j         dt                                                       dS r   r   r   s    r   r   zIntNumeric.__repr__R   r   r   r    r)   s   @r   r6   r6   D   s          JI)# ), ) ) ) ) ) )" " " " " " "B# B B B B B B B B B Br   r6   c                   T     e Zd ZdZeZdZdedd f fdZdef fdZ	def fdZ
 xZS )Float4zM
    Force dumping a Python `!float` as a PostgreSQL :sql:`float4/real`.
    r   r   r   c                 H    t                                          | |          S r   r	   r   s     r   r   zFloat4.__new__^   r   r   c                 D    t                                                      S r   r   r   s    r   r   zFloat4.__str__a   r   r   c                 d    | j         j         dt                                                       dS r   r   r   s    r   r   zFloat4.__repr__d   r   r   r   r!   r"   r#   r$   r%   floatr   r'   r   r   r(   r)   s   @r   r;   r;   V             JI)% )H ) ) ) ) ) )" " " " " " "B# B B B B B B B B B Br   r;   c                   T     e Zd ZdZeZdZdedd f fdZdef fdZ	def fdZ
 xZS )Float8zY
    Force dumping a Python `!float` as a PostgreSQL :sql:`float8/double precision`.
    r   r   r   c                 H    t                                          | |          S r   r	   r   s     r   r   zFloat8.__new__p   r   r   c                 D    t                                                      S r   r   r   s    r   r   zFloat8.__str__s   r   r   c                 d    | j         j         dt                                                       dS r   r   r   s    r   r   zFloat8.__repr__v   r   r   r?   r)   s   @r   rC   rC   h   rA   r   rC   c                   T     e Zd ZdZeZdZdedd f fdZdef fdZ	def fdZ
 xZS )OidzC
    Force dumping a Python `!int` as a PostgreSQL :sql:`oid`.
    r   r   r   c                 H    t                                          | |          S r   r	   r   s     r   r   zOid.__new__   r   r   c                 D    t                                                      S r   r   r   s    r   r   zOid.__str__   r   r   c                 d    | j         j         dt                                                       dS r   r   r   s    r   r   zOid.__repr__   r   r   r    r)   s   @r   rH   rH   z   s          JI)# )% ) ) ) ) ) )" " " " " " "B# B B B B B B B B B Br   rH   N)r#   r$   r&   r   r,   r1   r6   r@   r;   rC   rH   r   r   r   <module>rL      s    "B B B B B3 B B B$B B B B B3 B B B$B B B B B3 B B B$B B B B B B B B$B B B B BU B B B$B B B B BU B B B$B B B B B# B B B B Br   