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

Class MockSomething

Lib/test/test_typing.py:132–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 self.assertNotIsInstance(Something(), Mock)
131
132 class MockSomething(Something, Mock): pass
133 self.assertIsSubclass(MockSomething, Any)
134 self.assertIsSubclass(MockSomething, MockSomething)
135 self.assertIsSubclass(MockSomething, Something)

Callers 1

test_can_subclassMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_can_subclassMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…