B
    oºˆd  ã               @  s0   d dl mZ d dlmZmZ dddœdd„ZdS )	é    )Úannotations)ÚIOÚCallablezIO[str]z
int | None)Ú	file_likeÚreturnc             C  s4   t | ddƒ}|dk	r0y|ƒ S  tk
r.   dS X dS )zìGet fileno() from a file, accounting for poorly implemented file-like objects.

    Args:
        file_like (IO): A file-like object.

    Returns:
        int | None: The result of fileno if available, or None if operation failed.
    ÚfilenoN)ÚgetattrÚ	Exception)r   r   © r
   úJ/var/www/html/venv/lib/python3.7/site-packages/pip/_vendor/rich/_fileno.pyÚ
get_fileno   s    	r   N)Ú
__future__r   Útypingr   r   r   r
   r
   r
   r   Ú<module>   s   