PHP 8.2.30
Preview: _structures.py Size: 1.40 KB
/opt/hc_python/lib64/python3.12/site-packages/wheel/vendored/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: 16

Name Size Perms Modified Actions
- drwxr-xr-x 2025-04-04 08:01:57
Edit Download
197 B lrw-r--r-- 2025-04-04 08:01:57
Edit Download
9.94 KB lrw-r--r-- 2025-04-04 08:01:57
Edit Download
1.31 KB lrw-r--r-- 2025-04-04 08:01:57
Edit Download
8.04 KB lrw-r--r-- 2025-04-04 08:01:57
Edit Download
2.86 KB lrw-r--r-- 2025-04-04 08:01:57
Edit Download
38.85 KB lrw-r--r-- 2025-04-04 08:01:57
Edit Download
18.51 KB lrw-r--r-- 2025-04-04 08:01:57
Edit Download
5.14 KB lrw-r--r-- 2025-04-04 08:01:57
Edit Download
15.85 KB lrw-r--r-- 2025-04-04 08:01:57
Edit Download
3.19 KB lrw-r--r-- 2025-04-04 08:01:57
Edit Download
9.36 KB lrw-r--r-- 2025-04-04 08:01:57
Edit Download
2.61 KB lrw-r--r-- 2025-04-04 08:01:57
Edit Download
10.10 KB lrw-r--r-- 2025-04-04 08:01:57
Edit Download
1.40 KB lrw-r--r-- 2025-04-04 08:01:57
Edit Download
5.17 KB lrw-r--r-- 2025-04-04 08:01:57
Edit Download
0 B lrw-r--r-- 2025-04-04 08:01:57
Edit Download

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