HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: wpuser (1002)
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