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

Method __new__

Lib/test/test__interpchannels.py:175–177  ·  view source on GitHub ↗
(cls, pending=0, *, closed=False)

Source from the content-addressed store, hash-verified

173class ChannelState(namedtuple('ChannelState', 'pending closed')):
174
175 def __new__(cls, pending=0, *, closed=False):
176 self = super().__new__(cls, pending, closed)
177 return self
178
179 def incr(self):
180 return type(self)(self.pending + 1, closed=self.closed)

Callers

nothing calls this directly

Calls 2

superClass · 0.85
__new__Method · 0.45

Tested by

no test coverage detected