|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /usr/local/lib/python3.9/site-packages/prompt_toolkit/__pycache__/ |
a
��Sh� � @ s� d dl mZ d dlmZ d dlmZ d dlmZmZm Z m
Z
mZmZm
Z
mZ g d�Ze
ded�Ze
d�ZG d d
� d
e
eef �Ze
deedf d�Ze
d
�ZG dd� de eef �Ze
dedef d�Zdddd�dd�ZdS )� )�annotations)�deque)�wraps)�Any�Callable�Dict�Generic�Hashable�Tuple�TypeVar�cast)�SimpleCache�
FastDictCache�memoized�_T)�bound�_Uc @ sB e Zd ZdZdddd�dd�Zdd d
d�dd
�Zdd�dd�ZdS )r
z�
Very simple cache that discards the oldest item when the cache size is
exceeded.
:param maxsize: Maximum size of the cache. (Don't make it too big.)
� �int�None��maxsize�returnc C s$ |dksJ �i | _ t� | _|| _d S �Nr )�_datar �_keysr )�selfr � r �>/usr/local/lib/python3.9/site-packages/prompt_toolkit/cache.py�__init__ s zSimpleCache.__init__r zCallable[[], _U]r )�key�getter_funcr c C sp z| j | W S tyj |� }|| j |<