U
    ð¤ùdÌ  ã                   @   sÂ   d 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rPd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e edœdd	„Zd
dddddd	gZdS )zType aliases used by PyMongoé    )ÚTYPE_CHECKINGÚAnyÚMappingÚOptionalÚSequenceÚTupleÚTypeVarÚUnion)Ú_DocumentOutÚ_DocumentTypeÚ_DocumentTypeArg)Ú	Collationr   Ú_T)ÚelemÚreturnc                 C   s   | dk	st ‚| S )z‹This function is to allow us to cast all of the elements of an iterator from Optional[_T] to _T
    while inside a list comprehension.
    N)ÚAssertionError)r   © r   ú3/tmp/pip-unpacked-wheel-oblwsawz/pymongo/typings.pyÚstrip_optional*   s    r   r
   r   r   Ú_AddressÚ_CollationInÚ	_PipelineN)Ú__doc__Útypingr   r   r   r   r   r   r   r	   Zbson.typingsr
   r   r   Zpymongo.collationr   ÚstrÚintr   r   r   ZClusterTimer   r   Ú__all__r   r   r   r   Ú<module>   s$   (	ù