HEX
Server: nginx/1.24.0
System: Linux ip-172-31-22-109 6.17.0-1012-aws #12~24.04.1-Ubuntu SMP Mon Apr 6 17:36:28 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/rich/__pycache__/_fileno.cpython-312.pyc
�

"T�e��(�ddlmZddlmZmZdd�Zy)�)�annotations)�IO�Callablec�P�t|dd�}|�	|�Sy#t$rYywxYw)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)�	file_likers  �./usr/lib/python3/dist-packages/rich/_fileno.py�
get_filenors?��(/�y�(�D�'I�F�
��	��8�O����	��		�s��	%�%N)r
zIO[str]�returnz
int | None)�
__future__r�typingrrr��r�<module>rs��"��r