403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/site-packages/_pytest/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/site-packages/_pytest/__pycache__/stash.cpython-312.pyc
�

��Hg���ddlmZddlmZddlmZddlmZddlmZddgZed�Zed	�Z	Gd
�dee�Z
Gd�d�Zy)
�)�annotations)�Any)�cast)�Generic)�TypeVar�Stash�StashKey�T�Dc��eZdZdZdZy)r	z�``StashKey`` is an object used as a key to a :class:`Stash`.

    A ``StashKey`` is associated with the type ``T`` of the value of the key.

    A ``StashKey`` is unique and cannot conflict with another key.

    .. versionadded:: 7.0
    �N)�__name__�
__module__�__qualname__�__doc__�	__slots__r
��/C:\Python312\Lib\site-packages\_pytest/stash.pyr	r	s����Irc�T�eZdZdZdZdd�Zd
d�Zdd�Zdd�Zdd�Z	dd�Z
dd	�Zdd
�Zy)raJ``Stash`` is a type-safe heterogeneous mutable mapping that
    allows keys and value types to be defined separately from
    where it (the ``Stash``) is created.

    Usually you will be given an object which has a ``Stash``, for example
    :class:`~pytest.Config` or a :class:`~_pytest.nodes.Node`:

    .. code-block:: python

        stash: Stash = some_object.stash

    If a module or plugin wants to store data in this ``Stash``, it creates
    :class:`StashKey`\s for its keys (at the module level):

    .. code-block:: python

        # At the top-level of the module
        some_str_key = StashKey[str]()
        some_bool_key = StashKey[bool]()

    To store information:

    .. code-block:: python

        # Value type must match the key.
        stash[some_str_key] = "value"
        stash[some_bool_key] = True

    To retrieve the information:

    .. code-block:: python

        # The static type of some_str is str.
        some_str = stash[some_str_key]
        # The static type of some_bool is bool.
        some_bool = stash[some_bool_key]

    .. versionadded:: 7.0
    ��_storagec��i|_y)Nr��selfs r�__init__zStash.__init__Hs	��57��
rc�"�||j|<y)zSet a value for key.Nr)r�key�values   r�__setitem__zStash.__setitem__Ks��"��
�
�c�rc�<�tt|j|�S)zZGet the value for key.

        Raises ``KeyError`` if the key wasn't set before.
        )rr
r�rrs  r�__getitem__zStash.__getitem__Os��
�A�t�}�}�S�)�*�*rc�0�	||S#t$r|cYSwxYw)zNGet the value for key, or return default if the key wasn't set
        before.��KeyError�rr�defaults   r�getz	Stash.getVs%��	���9����	��N�	�s���c�:�	||S#t$r
|||<|cYSwxYw)zmReturn the value of key if already set, otherwise set the value
        of key to default and return default.r$r&s   r�
setdefaultzStash.setdefault^s.��	���9����	��D��I��N�	�s���c��|j|=y)z]Delete the value for key.

        Raises ``KeyError`` if the key wasn't set before.
        Nrr!s  r�__delitem__zStash.__delitem__gs��

�M�M�#�rc��||jvS)zReturn whether key was set.rr!s  r�__contains__zStash.__contains__ns���d�m�m�#�#rc�,�t|j�S)z)Return how many items exist in the stash.)�lenrrs r�__len__z
Stash.__len__rs���4�=�=�!�!rN)�return�None)r�StashKey[T]rr
r2r3)rr4r2r
)rr4r'rr2zT | D)rr4r'r
r2r
)rr4r2r3)rr4r2�bool)r2�int)
rrrrrrrr"r(r*r,r.r1r
rrrrs7��&�P�I�8�#�+����$�"rN)�
__future__r�typingrrrr�__all__r
rr	rr
rr�<module>r:sP��"������J�
���C�L���C�L��
�w�q�z�
�W"�W"r

Youez - 2016 - github.com/yon3zu
LinuXploit