
    (ph6                         S r Sr " S S\5      r " S S\5      r " S S\5      r " S S	\5      r " S
 S\5      r " S S\5      r	 " S S\5      r
g)z
Wrappers for numeric types.
zpsycopg.types.numericc                   h   ^  \ rS rSrSr\rSrS\SS 4U 4S jjrS\	4U 4S jjr
S\	4U 4S jjrSrU =r$ )	Int2   zE
Force dumping a Python `!int` as a PostgreSQL :sql:`smallint/int2`.
 argreturnc                 "   > [         TU ]  X5      $ Nsuper__new__clsr   	__class__s     D/var/www/html/venv/lib/python3.13/site-packages/psycopg/_wrappers.pyr   Int2.__new__       ws((    c                     > [         TU ]  5       $ r	   r   __repr__selfr   s    r   __str__Int2.__str__       w!!r   c                 T   > U R                   R                   S[        TU ]  5        S3$ N()r   __name__r   r   r   s    r   r   Int2.__repr__   *    ..))*!EG,<,>+?qAAr   r!   
__module____qualname____firstlineno____doc___MODULE	__slots__intr   strr   r   __static_attributes____classcell__r   s   @r   r   r      G     JI)# )& )" "B# B Br   r   c                   h   ^  \ rS rSrSr\rSrS\SS 4U 4S jjrS\	4U 4S jjr
S\	4U 4S jjrSrU =r$ )	Int4    zD
Force dumping a Python `!int` as a PostgreSQL :sql:`integer/int4`.
r   r   r   c                 "   > [         TU ]  X5      $ r	   r
   r   s     r   r   Int4.__new__(   r   r   c                     > [         TU ]  5       $ r	   r   r   s    r   r   Int4.__str__+   r   r   c                 T   > U R                   R                   S[        TU ]  5        S3$ r   r    r   s    r   r   Int4.__repr__.   r#   r   r$   r/   s   @r   r2   r2       r0   r   r2   c                   h   ^  \ rS rSrSr\rSrS\SS 4U 4S jjrS\	4U 4S jjr
S\	4U 4S jjrSrU =r$ )	Int82   zC
Force dumping a Python `!int` as a PostgreSQL :sql:`bigint/int8`.
r   r   r   c                 "   > [         TU ]  X5      $ r	   r
   r   s     r   r   Int8.__new__:   r   r   c                     > [         TU ]  5       $ r	   r   r   s    r   r   Int8.__str__=   r   r   c                 T   > U R                   R                   S[        TU ]  5        S3$ r   r    r   s    r   r   Int8.__repr__@   r#   r   r$   r/   s   @r   r;   r;   2   r0   r   r;   c                   h   ^  \ rS rSrSr\rSrS\SS 4U 4S jjrS\	4U 4S jjr
S\	4U 4S jjrSrU =r$ )	
IntNumericD   zG
Force dumping a Python `!int` as a PostgreSQL :sql:`numeric/decimal`.
r   r   r   c                 "   > [         TU ]  X5      $ r	   r
   r   s     r   r   IntNumeric.__new__L   r   r   c                     > [         TU ]  5       $ r	   r   r   s    r   r   IntNumeric.__str__O   r   r   c                 T   > U R                   R                   S[        TU ]  5        S3$ r   r    r   s    r   r   IntNumeric.__repr__R   r#   r   r$   r/   s   @r   rD   rD   D   sG     JI)# ), )" "B# B Br   rD   c                   h   ^  \ rS rSrSr\rSrS\SS 4U 4S jjrS\	4U 4S jjr
S\	4U 4S jjrSrU =r$ )	Float4V   zE
Force dumping a Python `!float` as a PostgreSQL :sql:`float4/real`.
r   r   r   c                 "   > [         TU ]  X5      $ r	   r
   r   s     r   r   Float4.__new__^   r   r   c                     > [         TU ]  5       $ r	   r   r   s    r   r   Float4.__str__a   r   r   c                 T   > U R                   R                   S[        TU ]  5        S3$ r   r    r   s    r   r   Float4.__repr__d   r#   r   r!   r%   r&   r'   r(   r)   r*   floatr   r,   r   r   r-   r.   r/   s   @r   rM   rM   V   G     JI)% )H )" "B# B Br   rM   c                   h   ^  \ rS rSrSr\rSrS\SS 4U 4S jjrS\	4U 4S jjr
S\	4U 4S jjrSrU =r$ )	Float8h   zQ
Force dumping a Python `!float` as a PostgreSQL :sql:`float8/double precision`.
r   r   r   c                 "   > [         TU ]  X5      $ r	   r
   r   s     r   r   Float8.__new__p   r   r   c                     > [         TU ]  5       $ r	   r   r   s    r   r   Float8.__str__s   r   r   c                 T   > U R                   R                   S[        TU ]  5        S3$ r   r    r   s    r   r   Float8.__repr__v   r#   r   rU   r/   s   @r   rY   rY   h   rW   r   rY   c                   h   ^  \ rS rSrSr\rSrS\SS 4U 4S jjrS\	4U 4S jjr
S\	4U 4S jjrSrU =r$ )	Oidz   z;
Force dumping a Python `!int` as a PostgreSQL :sql:`oid`.
r   r   r   c                 "   > [         TU ]  X5      $ r	   r
   r   s     r   r   Oid.__new__   r   r   c                     > [         TU ]  5       $ r	   r   r   s    r   r   Oid.__str__   r   r   c                 T   > U R                   R                   S[        TU ]  5        S3$ r   r    r   s    r   r   Oid.__repr__   r#   r   r$   r/   s   @r   rb   rb   z   sG     JI)# )% )" "B# B Br   rb   N)r(   r)   r+   r   r2   r;   rD   rV   rM   rY   rb   r   r   r   <module>rj      ss    "B3 B$B3 B$B3 B$B B$BU B$BU B$B# Br   