o
�J�h� � @ s" d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl m
Z
d dlmZ d dl
mZ d dlmZmZmZmZ ddlmZ dd lmZmZ dd
lmZ ddlmZ ddlmZmZm Z m!Z!m"Z"m#Z#m$Z$ e�%d
�Z&dd� Z'G dd� de(�Z)G dd� de)d�Z*G dd� dej+�Z,dS )� )�annotationsN)�ESPIPE)� has_magic)�sha256)�Any�ClassVar�Dict�Tuple� )�DEFAULT_CALLBACK)�apply_config�conf)�DirCache)�Transaction)�_unstrip_protocol�glob_translate�
isfilelike�other_paths�
read_block�stringify_path�tokenize�fsspecc C s | |i |��S �N� ��cls�args�kwargsr r �IC:\pinokio\api\whisper-webui.git\app\env\lib\site-packages\fsspec\spec.py�
make_instance s r c s, e Zd ZdZ� fdd�Z� fdd�Z� ZS )�_Cacheda
Metaclass for caching file system instances.
Notes
-----
Instances are cached according to
* The values of the class attributes listed in `_extra_tokenize_attributes`
* The arguments passed to ``__init__``.
This creates an additional reference to the filesystem, which prevents the
filesystem from being garbage collected when all *user* references go away.
A call to the :meth:`AbstractFileSystem.clear_instance_cache` must *also*
be made for a filesystem instance to be garbage collected.
c s<