MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/_pyrepl/fancy_termios.py:32–39  ·  view source on GitHub ↗
(self, attrs: list[int | list[bytes]])

Source from the content-addressed store, hash-verified

30
31class TermState:
32 def __init__(self, attrs: list[int | list[bytes]]) -> None:
33 self.iflag = cast(int, attrs[0])
34 self.oflag = cast(int, attrs[1])
35 self.cflag = cast(int, attrs[2])
36 self.lflag = cast(int, attrs[3])
37 self.ispeed = cast(int, attrs[4])
38 self.ospeed = cast(int, attrs[5])
39 self.cc = cast(list[bytes], attrs[6])
40
41 def as_list(self) -> list[int | list[bytes]]:
42 return [

Callers

nothing calls this directly

Calls 1

castFunction · 0.90

Tested by

no test coverage detected