o
    ;h                     @  s6  U d dl mZ d dlmZ d dlmZmZmZ d dlm	Z	m
Z
mZmZmZmZmZmZmZmZ eeB eB ZedZedddZed	Ze	rYd d
lZd d
lZd d
lZd d
lZd d
lZG dd deZ G dd deZ!G dd deZ"e!Z#de$d< e"Z%de$d< dZ&de$d< dZ'de$d< dZ(de$d< dZ)de$d< g dZ*d
S )    )annotations)Counter)	AwaitableCallableIterable)
TYPE_CHECKINGAnyClassVarLiteral
NamedTuple	ParamSpecProtocol	TypeAliasTypeVarcastRR_coT)	covariantPNc                   @  s|   e Zd Z			d&d'ddZd(d)ddZd*ddZ	d+d,ddZ	d+d,ddZd(d-d d!Z			d&d.d"d#Z		d/d0d$d%Z
dS )1MemcachedClientPr   NkeystrvalueSerializableexpire
int | Nonenoreplybool | Noneflagsreturnboolc                 C     d S N selfr   r   r   r   r   r#   r#   @/var/www/html/venv/lib/python3.10/site-packages/limits/typing.pyadd"      zMemcachedClientP.adddefault
str | Nonebytesc                 C  r!   r"   r#   )r%   r   r)   r#   r#   r&   get+       zMemcachedClientP.getkeysIterable[str]dict[str, Any]c                 C  r!   r"   r#   )r%   r.   r#   r#   r&   get_many-   r-   zMemcachedClientP.get_manyFintc                 C  r!   r"   r#   r%   r   r   r   r#   r#   r&   incr/      zMemcachedClientP.incrc                 C  r!   r"   r#   r3   r#   r#   r&   decr3   s   zMemcachedClientP.decrc                 C  r!   r"   r#   )r%   r   r   r#   r#   r&   delete:   r-   zMemcachedClientP.deletec                 C  r!   r"   r#   r$   r#   r#   r&   set<   r(   zMemcachedClientP.setc                 C  r!   r"   r#   )r%   r   r   r   r#   r#   r&   touchE   r5   zMemcachedClientP.touch)r   NN)r   r   r   r   r   r   r   r   r   r   r   r    r"   )r   r   r)   r*   r   r+   )r.   r/   r   r0   )F)r   r   r   r2   r   r   r   r   )r   r   r   r   r   r   )r   r   r   r   r   r2   r   r   r   r   r   r    )r   N)r   r   r   r   r   r   r   r    )__name__
__module____qualname__r'   r,   r1   r4   r6   r7   r8   r9   r#   r#   r#   r&   r   !   s$    	

r   c                   @  R   e Zd ZdddZdd	d
ZdddZdddZdddZdddZd ddZ	dS )!RedisClientPr   r   amountr2   r   c                 C  r!   r"   r#   r%   r   r?   r#   r#   r&   incrbyK   r-   zRedisClientP.incrbybytes | Nonec                 C  r!   r"   r#   r%   r   r#   r#   r&   r,   L   r-   zRedisClientP.getc                 C  r!   r"   r#   rC   r#   r#   r&   r7   M   r-   zRedisClientP.deletec                 C  r!   r"   r#   rC   r#   r#   r&   ttlN   r-   zRedisClientP.ttlsecondsr    c                 C  r!   r"   r#   r%   r   rE   r#   r#   r&   r   O   r-   zRedisClientP.expirec                 C  r!   r"   r#   r%   r#   r#   r&   pingP   r-   zRedisClientP.pingscriptr+   redis.commands.core.Scriptc                 C  r!   r"   r#   r%   rI   r#   r#   r&   register_scriptQ   r-   zRedisClientP.register_scriptNr   r   r?   r2   r   r2   r   r   r   rB   r   r   r   r2   r   r   rE   r2   r   r    r   r    rI   r+   r   rJ   
r:   r;   r<   rA   r,   r7   rD   r   rH   rL   r#   r#   r#   r&   r>   J       





r>   c                   @  r=   )!AsyncRedisClientPr   r   r?   r2   r   c                      d S r"   r#   r@   r#   r#   r&   rA   U       zAsyncRedisClientP.incrbyrB   c                   rV   r"   r#   rC   r#   r#   r&   r,   V   rW   zAsyncRedisClientP.getc                   rV   r"   r#   rC   r#   r#   r&   r7   W   rW   zAsyncRedisClientP.deletec                   rV   r"   r#   rC   r#   r#   r&   rD   X   rW   zAsyncRedisClientP.ttlrE   r    c                   rV   r"   r#   rF   r#   r#   r&   r   Y   rW   zAsyncRedisClientP.expirec                   rV   r"   r#   rG   r#   r#   r&   rH   Z   rW   zAsyncRedisClientP.pingrI   r+   rJ   c                 C  r!   r"   r#   rK   r#   r#   r&   rL   [   r-   z!AsyncRedisClientP.register_scriptNrM   rN   rO   rP   rQ   rR   rS   r#   r#   r#   r&   rU   T   rT   rU   r   RedisClientAsyncRedisClientz2coredis.Redis[bytes] | coredis.RedisCluster[bytes]AsyncCoRedisClientz0pymongo.mongo_client.MongoClient[dict[str, Any]]MongoClientz)pymongo.database.Database[dict[str, Any]]MongoDatabasez-pymongo.collection.Collection[dict[str, Any]]MongoCollection)r   r   rY   r   r   r	   r   r   r
   r   r[   r]   r\   r   r   r   r   r   r   rX   r   r   r   r   )+
__future__r   collectionsr   collections.abcr   r   r   typingr   r   r	   r
   r   r   r   r   r   r   r2   r   floatr   r   r   r   ZcoredisZpymongo.collectionZpymongoZpymongo.databaseZpymongo.mongo_clientZredisr   r>   rU   rX   __annotations__rY   rZ   r[   r\   r]   __all__r#   r#   r#   r&   <module>   s0    0)

