MCPcopy Create free account
hub / github.com/EasyIME/PIME / __init__

Method __init__

python/python3/tornado/locks.py:383–388  ·  view source on GitHub ↗
(self, value: int = 1)

Source from the content-addressed store, hash-verified

381 """
382
383 def __init__(self, value: int = 1) -> None:
384 super().__init__()
385 if value < 0:
386 raise ValueError("semaphore initial value must be >= 0")
387
388 self._value = value
389
390 def __repr__(self) -> str:
391 res = super().__repr__()

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected