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

Class ConcreteInherit

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

Source from the content-addressed store, hash-verified

4564 get_protocol_members(Concrete())
4565
4566 class ConcreteInherit(P):
4567 a: int = 42
4568 def b(self) -> str: return "capybara"
4569 @property
4570 def c(self) -> int: return 5
4571
4572 with self.assertRaisesRegex(TypeError, "not a Protocol"):
4573 get_protocol_members(ConcreteInherit)

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…