U
    >h                     @  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  s8   t | dd}|dk	r4z| W S  tk
r2   Y dS X dS )zGet 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
   </tmp/pip-unpacked-wheel-zvxvnq2j/pip/_vendor/rich/_fileno.py
get_fileno   s    	r   N)
__future__r   typingr   r   r   r
   r
   r
   r   <module>   s   