# 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()
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
__init__.py | File | 501 B | 0644 |
|
_elffile.py | File | 3.19 KB | 0644 |
|
_manylinux.py | File | 8.72 KB | 0644 |
|
_musllinux.py | File | 2.46 KB | 0644 |
|
_parser.py | File | 9.96 KB | 0644 |
|
_structures.py | File | 1.4 KB | 0644 |
|
_tokenizer.py | File | 5.17 KB | 0644 |
|
markers.py | File | 8.02 KB | 0644 |
|
metadata.py | File | 16.01 KB | 0644 |
|
py.typed | File | 0 B | 0644 |
|
requirements.py | File | 3.21 KB | 0644 |
|
specifiers.py | File | 38.29 KB | 0644 |
|
tags.py | File | 17.68 KB | 0644 |
|
utils.py | File | 4.25 KB | 0644 |
|
version.py | File | 15.94 KB | 0644 |
|