spec.cpython-312.pyc•82.3 kB
�
lMgs � �^ � 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$ ejJ d
� Z&d� Z' G d� de(� Z) G d� de)�� Z* G d� dejV � Z,y)� )�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 � � | |i |��S �N� )�cls�args�kwargss �WC:\Users\noahv\Documents\GitHub\clickup-operator\.venv\Lib\site-packages\fsspec/spec.py�
make_instancer s � ������� c �, � � e Zd ZdZ� fd�Z� fd�Z� xZS )�_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 �� �� t �| � |i |�� t j d� rt j
� | _ ni | _ t j � | _ y )N�weakref_instance_cache)
�super�__init__r �get�weakref�WeakValueDictionary�_cache�os�getpid�_pid)r r r � __class__s �r r'