We're a place where coders share, stay up-to-date and grow their careers.
You did not need to step out from Python for interfaces.
You could use Protocol from typing module. :)
Great article, anyway. Thank you.
I didn't know about that module. Thanks for the tip. I look forward to playing around with it.
You'll need mypy or an internal static typing analyzer (as in PyCharm) to appreciate it. Otherwise, it is ignored in runtime.
You did not need to step out from Python for interfaces.
You could use Protocol from typing module. :)
Great article, anyway. Thank you.
I didn't know about that module. Thanks for the tip. I look forward to playing around with it.
You'll need mypy or an internal static typing analyzer (as in PyCharm) to appreciate it. Otherwise, it is ignored in runtime.