o
    h                     @  s*   d dl mZ d dlmZmZ d
ddZd	S )    )annotations)IOCallable	file_likeIO[str]return
int | Nonec                 C  s6   t | dd}|durz| W S  ty   Y dS w 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   K/var/www/html/venv/lib/python3.10/site-packages/pip/_vendor/rich/_fileno.py
get_fileno   s   	r   N)r   r   r   r   )
__future__r   typingr   r   r   r   r   r   r   <module>   s    