MCPcopy Index your code
hub / github.com/masterking32/MasterHttpRelayVPN / _cfg_float

Method _cfg_float

src/proxy/proxy_server.py:270–276  ·  view source on GitHub ↗
(config: dict, key: str, default: float,
                   *, minimum: float = 0.1)

Source from the content-addressed store, hash-verified

268
269 @staticmethod
270 def _cfg_float(config: dict, key: str, default: float,
271 *, minimum: float = 0.1) -> float:
272 try:
273 value = float(config.get(key, default))
274 except (TypeError, ValueError):
275 value = default
276 return max(minimum, value)
277
278 @classmethod
279 def _normalize_download_extensions(cls, raw) -> tuple[tuple[str, ...], bool]:

Callers 1

__init__Method · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected