File: //usr/local/lib/python3.7/site-packages/pip/_vendor/cachecontrol/__pycache__/wrapper.cpython-37.pyc
B
L��g� � @ s� d dl mZ d dlmZmZ d dlmZ d dlmZ ertd dl m
Z
d dlmZ d dlm
Z
d dlmZ d d lmZ ddd
dddddddd� dd�Zd
S )� )�annotations)�
TYPE_CHECKING�
Collection)�CacheControlAdapter)� DictCache)�requests)� BaseCache)�CacheController)�
BaseHeuristic)�
SerializerNTzrequests.SessionzBaseCache | None�boolzSerializer | NonezBaseHeuristic | Noneztype[CacheController] | Nonez type[CacheControlAdapter] | NonezCollection[str] | None) �sess�cache�cache_etags�
serializer� heuristic�controller_class�
adapter_class�cacheable_methods�returnc C sJ |d krt � n|}|pt}|||||||d�}| �d|� | �d|� | S )N)r r r r r zhttp://zhttps://)r r �mount) r
r r r r r r r �adapter� r �D/tmp/pip-unpacked-wheel-hv55ucu3/pip/_vendor/cachecontrol/wrapper.py�CacheControl s
r )NTNNNNN)�
__future__r �typingr r Z pip._vendor.cachecontrol.adapterr Zpip._vendor.cachecontrol.cacher �pip._vendorr r Z#pip._vendor.cachecontrol.controllerr Z#pip._vendor.cachecontrol.heuristicsr
Z"pip._vendor.cachecontrol.serializer r r r r r �<module> s