o
    'èhØ	  ã                   @  sZ  d Z ddlmZ ddlmZmZmZmZmZm	Z	m
Z
mZ ddlmZmZmZ erjddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZ ddl m!Z! ddl"m#Z# ddl$m%Z% e	e&ee' f Z(eee&ef df Z)eee&ef  Z*ee&ef Z+e
dƒZ,ed Z-ed Z.ed Z/ed Z0ed Z1ddd„Z2g d¢Z3dS )zType aliases used by PyMongoé    )Úannotations)ÚTYPE_CHECKINGÚAnyÚMappingÚOptionalÚSequenceÚTupleÚTypeVarÚUnion)Ú_DocumentOutÚ_DocumentTypeÚ_DocumentTypeArg)Ú
_AsyncBulk)Ú_AsyncClientBulk)ÚAsyncClientSession)ÚAsyncMongoClient)ÚAsyncConnection)Ú	Collation)Ú_Bulk)Ú_ClientBulk)ÚClientSession)ÚMongoClient)Ú
Connectionr   Ú_T)r   r   )r   r   )r   r   )r   r   )r   r   ÚelemúOptional[_T]Úreturnc                 C  s   | dusJ ‚| S )zˆThis function is to allow us to cast all the elements of an iterator from Optional[_T] to _T
    while inside a list comprehension.
    N© )r   r   r   úK/var/www/html/olx_land/venv/lib/python3.10/site-packages/pymongo/typings.pyÚstrip_optional=   s   r   )r   r   r   Ú_AddressÚ_CollationInÚ	_Pipeliner   Ú_AgnosticMongoClientN)r   r   r   r   )4Ú__doc__Ú
__future__r   Útypingr   r   r   r   r   r   r	   r
   Úbson.typingsr   r   r   Úpymongo.asynchronous.bulkr   Ú pymongo.asynchronous.client_bulkr   Ú#pymongo.asynchronous.client_sessionr   Ú!pymongo.asynchronous.mongo_clientr   Úpymongo.asynchronous.poolr   Úpymongo.collationr   Úpymongo.synchronous.bulkr   Úpymongo.synchronous.client_bulkr   Ú"pymongo.synchronous.client_sessionr   Ú pymongo.synchronous.mongo_clientr   Úpymongo.synchronous.poolr   ÚstrÚintr    r!   r"   ÚClusterTimer   r#   Ú_AgnosticConnectionÚ_AgnosticClientSessionÚ_AgnosticBulkÚ_AgnosticClientBulkr   Ú__all__r   r   r   r   Ú<module>   s8   (
