| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1805,6 +1805,7 @@ def __instancecheck__(cls, instance): | |||
| 1805 | 1805 | return True | |
| 1806 | 1806 | ||
| 1807 | 1807 | if is_protocol_cls: | |
| 1808 | + # Fast path for protocols with only callable members | ||
| 1808 | 1809 | if cls.__callable_proto_members_only__ and issubclass(type(instance), cls): | |
| 1809 | 1810 | return True | |
| 1810 | 1811 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments