OwlCyberSecurity - MANAGER
Edit File: _fileno.cpython-39.pyc
a �F�f � @ s0 d dl mZ d dlmZmZ ddd�dd�ZdS ) � )�annotations)�IO�CallablezIO[str]z int | None)� file_like�returnc C s6 t | dd�}|dur2z|� W S ty0 Y dS 0 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 �Z/home/gouroczh/virtualenv/test/3.9/lib/python3.9/site-packages/pip/_vendor/rich/_fileno.py� get_fileno s r N)� __future__r �typingr r r r r r r �<module> s