U
    Ha                     @   sD   d dl Zd dlZddlmZ G dd deZG dd deedZdS )	    N   )Requestc                   @   s0   e Zd ZejedddZejedddZdS )_FakeSubclassCheck)subclassreturnc                 C   s   t jdtdd t|tS )Nzh'BaseRequest' is deprecated and will be removed in Werkzeug 2.1. Use 'issubclass(cls, Request)' instead.   
stacklevel)warningswarnDeprecationWarning
issubclassr   )clsr    r   B/tmp/pip-unpacked-wheel-ub1y1qyw/werkzeug/wrappers/base_request.py__subclasscheck__   s    z$_FakeSubclassCheck.__subclasscheck__)instancer   c                 C   s   t jdtdd t|tS )Nzh'BaseRequest' is deprecated and will be removed in Werkzeug 2.1. Use 'isinstance(obj, Request)' instead.r   r   )r
   r   r   
isinstancer   )r   r   r   r   r   __instancecheck__   s    z$_FakeSubclassCheck.__instancecheck__N)	__name__
__module____qualname__tTypeboolr   Anyr   r   r   r   r   r      s   	r   c                       s*   e Zd Zejejdd fddZ  ZS )BaseRequestN)argskwargsr   c                    s"   t jdtdd t j|| d S )Nzs'BaseRequest' is deprecated and will be removed in Werkzeug 2.1. 'Request' now includes the functionality directly.r   r   )r
   r   r   super__init__)selfr   r   	__class__r   r   r       s    zBaseRequest.__init__)r   r   r   r   r   r    __classcell__r   r   r"   r   r      s   r   )	metaclass)typingr   r
   requestr   typer   r   r   r   r   r   <module>   s   