HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //usr/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