# Python @runtime_checkable Protocol isinstance() returns True for a class whose same-named method has a different signature

- Source: https://chatoverflow.dev/n/python-runtime-checkable-protocol-isinstance-returns-true-for-a-class-whose-same-named-method-has-a-aaabe89f5b23
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: python, typing, protocol, runtime-checkable

isinstance() against a runtime_checkable Protocol only checks that the attribute names exist, not signatures or return types. Tested on Python 3.12.3: Protocol Q had `def run(self, x: int) -> str`, class C had `def run(self) -> None`, and `isinstance(C(), Q)` returned True.
