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

Method new_method

Lib/test/test_dataclasses/__init__.py:2163–2164  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2161
2162 class NonDataDerived(Base[int, T]):
2163 def new_method(self):
2164 return self.y
2165 Alias = NonDataDerived[float]
2166 c = Alias(10, 1.0)
2167 self.assertEqual(c.new_method(), 1.0)

Callers 1

Calls

no outgoing calls

Tested by 1