File: //opt/saltstack/salt/lib/python3.10/site-packages/rich/__pycache__/_fileno.cpython-310.pyc
o
;j � @ s* d dl mZ d dlmZmZ d
dd�Zd S )� )�annotations)�IO�Callable� file_like�IO[str]�return�
int | Nonec C s6 t | dd�}|durz|� W S ty Y dS w dS )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 �@/opt/saltstack/salt/lib/python3.10/site-packages/rich/_fileno.py�
get_fileno s �r N)r r r r )�
__future__r �typingr r r r r r r
�<module> s