34
Type hinting in modern Python: The Protocol class
(codebeez.nl)
Welcome to the Python community on the programming.dev Lemmy instance!
October 2023
November 2023
Past
July 2023
August 2023
September 2023
The difference is that with
Protocol
you can define which method presence you want to ensure. Like i said: custom vs. generic.