관리-도구
편집 파일: _fileno.cpython-38.pyc
U &?�f � @ s0 d dl mZ d dlmZmZ ddd�dd�ZdS ) � )�annotations)�IO�CallablezIO[str]z int | None)� file_like�returnc C s8 t | dd�}|dk r4z|� W S tk r2 Y dS X 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 �F/opt/hc_python/lib/python3.8/site-packages/pip/_vendor/rich/_fileno.py� get_fileno s r N)� __future__r �typingr r r r r r r �<module> s