R`i ( d dl mZ d dlmZmZ ddZy) )annotations)IOCallablec P t | dd }| | S y# t $ r Y yw xY w)zGet 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_liker s /builddir/build/BUILDROOT/alt-python312-pip-23.3.1-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/rich/_fileno.py
get_filenor s? (/y(D'IF
8O s %%N)r
zIO[str]returnz
int | None)
__future__r typingr r r r