__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
from typing import Type, TypeVar, Union, overload

from hamcrest.core.base_matcher import BaseMatcher
from hamcrest.core.description import Description
from hamcrest.core.helpers.wrap_matcher import is_matchable_type, wrap_matcher
from hamcrest.core.matcher import Matcher

from .isinstanceof import instance_of

__author__ = "Jon Reid"
__copyright__ = "Copyright 2011 hamcrest.org"
__license__ = "BSD, see License.txt"

T = TypeVar("T")


class IsNot(BaseMatcher[T]):
    def __init__(self, matcher: Matcher[T]) -> None:
        self.matcher = matcher

    def _matches(self, item: T) -> bool:
        return not self.matcher.matches(item)

    def describe_to(self, description: Description) -> None:
        description.append_text("not ").append_description_of(self.matcher)

    def describe_mismatch(self, item: T, mismatch_description: Description) -> None:
        mismatch_description.append_text("but ")
        self.matcher.describe_match(item, mismatch_description)


@overload
def _wrap_value_or_type(x: Type) -> Matcher[object]:
    ...


@overload
def _wrap_value_or_type(x: T) -> Matcher[T]:
    ...


def _wrap_value_or_type(x):
    if is_matchable_type(x):
        return instance_of(x)
    else:
        return wrap_matcher(x)


@overload
def is_not(match: Type) -> Matcher[object]:
    ...


@overload
def is_not(match: Union[Matcher[T], T]) -> Matcher[T]:
    ...


def is_not(match):
    """Inverts the given matcher to its logical negation.

    :param match: The matcher to negate.

    This matcher compares the evaluated object to the negation of the given
    matcher. If the ``match`` argument is not a matcher, it is implicitly
    wrapped in an :py:func:`~hamcrest.core.core.isequal.equal_to` matcher to
    check for equality, and thus matches for inequality.

    Examples::

        assert_that(cheese, is_not(equal_to(smelly)))
        assert_that(cheese, is_not(smelly))

    """
    return IsNot(_wrap_value_or_type(match))


def not_(match: Union[Matcher[T], T]) -> Matcher[T]:
    """Alias of :py:func:`is_not` for better readability of negations.

    Examples::

        assert_that(alist, not_(has_item(item)))

    """
    return is_not(match)

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 960 B 0644
allof.py File 2.26 KB 0644
anyof.py File 1.3 KB 0644
described_as.py File 1.89 KB 0644
future.py File 4.69 KB 0644
is_.py File 3 KB 0644
isanything.py File 967 B 0644
isequal.py File 1.01 KB 0644
isinstanceof.py File 1.23 KB 0644
isnone.py File 745 B 0644
isnot.py File 2.13 KB 0644
issame.py File 1.31 KB 0644
raises.py File 5.23 KB 0644
Filemanager