관리-도구
편집 파일: _cache.cpython-311.pyc
� �܋f � �L � d dl mZ d dlmZ G d� d� � Z e� � ZdS )� )�annotations)�Anyc �* � e Zd ZdZd d�Zd d�Zdd�Zd S )�CacheManagerz-Manager of caches, to be used as a singleton.�return�Nonec � � g | _ d S )N)�dict_caches)�selfs �_/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/astroid/_cache.py�__init__zCacheManager.__init__ s � �13����� c �B � | j D ]}|� � � �dS )zClear all caches.N)r �clear)r � dict_caches r �clear_all_cacheszCacheManager.clear_all_caches s3 � ��*� � �J�������� � r �cache�dict[Any, Any]c �: � | j � |� � dS )z&Add a dictionary cache to the manager.N)r �append)r r s r �add_dict_cachezCacheManager.add_dict_cache s � ������&�&�&�&�&r N)r r )r r r r )�__name__� __module__�__qualname__�__doc__r r r � r r r r sV � � � � � �7�7�4� 4� 4� 4�� � � � '� '� '� '� '� 'r r N)� __future__r �typingr r � CACHE_MANAGERr r r �<module>r sd �� #� "� "� "� "� "� � � � � � � '� '� '� '� '� '� '� '� ���� � � r