MCPcopy Index your code
hub / github.com/RustPython/RustPython / __repr__

Method __repr__

Lib/asyncio/timeouts.py:75–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 return self._state in (_State.EXPIRING, _State.EXPIRED)
74
75 def __repr__(self) -> str:
76 info = ['']
77 if self._state is _State.ENTERED:
78 when = round(self._when, 3) if self._when is not None else None
79 info.append(f"when={when}")
80 info_str = ' '.join(info)
81 return f"<Timeout [{self._state.value}]{info_str}>"
82
83 async def __aenter__(self) -> "Timeout":
84 if self._state is not _State.CREATED:

Callers

nothing calls this directly

Calls 3

roundFunction · 0.85
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected