PHP 8.3.31
Preview: _structures.py Size: 1.48 KB
//opt/imunify360/venv/lib64/python3.11/site-packages/pip/_vendor/packaging/_structures.py

# This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.

import typing


@typing.final
class InfinityType:
    __slots__ = ()

    def __repr__(self) -> str:
        return "Infinity"

    def __hash__(self) -> int:
        return hash(repr(self))

    def __lt__(self, other: object) -> bool:
        return False

    def __le__(self, other: object) -> bool:
        return False

    def __eq__(self, other: object) -> bool:
        return isinstance(other, self.__class__)

    def __gt__(self, other: object) -> bool:
        return True

    def __ge__(self, other: object) -> bool:
        return True

    def __neg__(self: object) -> "NegativeInfinityType":
        return NegativeInfinity


Infinity = InfinityType()


@typing.final
class NegativeInfinityType:
    __slots__ = ()

    def __repr__(self) -> str:
        return "-Infinity"

    def __hash__(self) -> int:
        return hash(repr(self))

    def __lt__(self, other: object) -> bool:
        return True

    def __le__(self, other: object) -> bool:
        return True

    def __eq__(self, other: object) -> bool:
        return isinstance(other, self.__class__)

    def __gt__(self, other: object) -> bool:
        return False

    def __ge__(self, other: object) -> bool:
        return False

    def __neg__(self: object) -> InfinityType:
        return Infinity


NegativeInfinity = NegativeInfinityType()

Directory Contents

Dirs: 2 × Files: 19

Name Size Perms Modified Actions
licenses DIR
- drwxr-xr-x 2026-06-08 20:23:13
Edit Download
- drwxr-xr-x 2026-06-08 20:23:13
Edit Download
197 B lrw-r--r-- 2026-04-14 09:45:18
Edit Download
9.94 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
1.31 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
12.47 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
38.44 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
0 B lrw-r--r-- 2026-04-14 09:45:18
Edit Download
22.01 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
2.80 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
39.86 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
22.32 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
4.92 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
22.74 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
3.14 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
9.33 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
2.64 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
10.27 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
1.48 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
5.29 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
494 B lrw-r--r-- 2026-04-14 09:45:18
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).