PHP 8.2.30
Preview: _structures.py Size: 1.40 KB
/opt/cloudlinux/venv/lib/python3.11/site-packages/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.


class InfinityType:
    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()


class NegativeInfinityType:
    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: 1 × Files: 15

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-06 08:05:34
Edit Download
8.02 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
16.01 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
0 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
3.21 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
38.29 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
17.68 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
4.25 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
15.94 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
3.19 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
8.72 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.46 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
9.96 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.40 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
5.17 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
501 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download

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