FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add comment · python/cpython@e114fe9 · GitHub

/ cpython Public

Commit e114fe9

Browse files
committed
Add comment
1 parent 49373a9 commit e114fe9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Lib/typing.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,6 +1805,7 @@ def __instancecheck__(cls, instance):
18051805
return True
18061806

18071807
if is_protocol_cls:
1808+
# Fast path for protocols with only callable members
18081809
if cls.__callable_proto_members_only__ and issubclass(type(instance), cls):
18091810
return True
18101811

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL