a *eg@sddlmZddlZddlZddlZddlmZmZmZm Z ddl m Z ddl m Z ddlmZmZddlmZerddlmZmZdd lmZdd l mZdd lmZdd lmZGd dde ZdS)) annotationsN) TYPE_CHECKINGAny CollectionMapping) HTTPAdapter) DictCache)PERMANENT_REDIRECT_STATUSESCacheController)CallbackFileWrapper)PreparedRequestResponse) HTTPResponse) BaseCache) BaseHeuristic) Serializerc seZdZhdZd dddddd d d d d fd d Zd!ddddddd ddfdd Zd"dddd ddfdd Zd dfdd ZZS)#CacheControlAdapter>DELETEPUTPATCHNTzBaseCache | Noneboolztype[CacheController] | NonezSerializer | NonezBaseHeuristic | NonezCollection[str] | NonerNone) cache cache_etagscontroller_class serializer heuristiccacheable_methodsargskwreturnc sTtj|i||dur tn||_||_|p2d|_|p._update_chunk_lengthN)rr2rapplystatusr$update_cached_responseread release_connintr cache_responser rA functoolspartialchunkedrFtypes MethodTyper"r6invalidating_methodsokurl cache_urlrdeleter1) r%r+r>r1rr;r<rFr=rVr'rDr*r6PsD      z"CacheControlAdapter.build_response)r cs|jtdS)N)rcloser"rCr'r)r*rXs zCacheControlAdapter.close)NTNNNN)FNTNNN)FN) __name__ __module__ __qualname__rSr#r:r6rX __classcell__r)r)r'r*rs&$""Or) __future__rrNrQr4typingrrrrZpip._vendor.requests.adaptersrZpip._vendor.cachecontrol.cacherZ#pip._vendor.cachecontrol.controllerr r Z$pip._vendor.cachecontrol.filewrapperr Zpip._vendor.requestsr r Zpip._vendor.urllib3rrZ#pip._vendor.cachecontrol.heuristicsrZ"pip._vendor.cachecontrol.serializerrr)r)r)r*s