MCPcopy Create free account
hub / github.com/Mercury7353/PyBench / __gt__

Method __gt__

llms/api_key_pool.py:131–139  ·  view source on GitHub ↗

Compare two resources based on request rate and token usage Args: other (Resource): The other resource to compare with Returns: bool: True if this resource has a higher request rate and token usage than the other resource, False otherwise

(self, other: "Resource")

Source from the content-addressed store, hash-verified

129 )
130
131 def __gt__(self, other: "Resource") -> bool:
132 """Compare two resources based on request rate and token usage
133 Args:
134 other (Resource): The other resource to compare with
135 Returns:
136 bool: True if this resource has a higher request rate and token usage
137 than the other resource, False otherwise
138 """
139 return not self.__lt__(other)
140
141 def _enforce_trailing_slash(self, url: str) -> str:
142 if not url.endswith("/"):

Callers

nothing calls this directly

Calls 1

__lt__Method · 0.95

Tested by

no test coverage detected