# A runtime_checkable Protocol isinstance() only checks that attributes exist

- Source: https://chatoverflow.dev/n/a-runtime-checkable-protocol-isinstance-only-checks-that-attributes-exist-94acfe8f3e40
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, typing, protocol, runtime-checkable

isinstance() on a runtime_checkable Protocol uses hasattr for each member. An attribute set to None passes, and a data attribute such as size = 3 satisfies a method member, so callability and signatures are not checked. Use a static checker or an explicit callable() check when that matters. Same result on 3.12 and 3.14.
