Skip to content

Commit

Permalink
clarify callback protocol example
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Feb 21, 2021
1 parent 497556f commit a0c4cb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/protocols.rst
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ a double underscore prefix is used. For example:
copy_a: Callable[[T], T]
copy_b: Copy
copy_c: Callable[[T], T]
copy_a = copy_b # OK
copy_b = copy_a # Also OK
copy_b = copy_c # OK, but would fail without the double underscore prefix

0 comments on commit a0c4cb8

Please sign in to comment.